With printf("\n"); in your code, every time you'll read the next R and a, you will do it on a new (empty) line.
helps to get into a new line also useful in better understanding of the code by writing and printing