/* Write a program to take n as input and print 1 to n in the following order.
 * 1
 * 1 2
 * 1 2 3
 * 1 2 3 4 
 * 1 2 3 4 n
 */
 
#include <stdio.h>

int main(void) {
	// your code goes here
	int num = 4;
	
	for (int k =3; num >=(num-k);k--)
	
	{
		for (int i=0 ; num>i; i++)
		{
			printf("%d",num-i);
		}
		printf("\n");
		
		
	}
	return 0;
}
