13260 - Nappa's Attack   

Description

Nappa is on his way to destroy a city for some fun, however on his way there, he was stopped by an army shooting at him so Nappa decided to destroy them for fun too.

Before he destroyed them, he noticed that the men in the army form a pattern. Each group forms a triangular shape as follows:

The strongest one is at the center and is protected by layers of weaker soldiers and those soldiers are protected by even weaker soldiers.

There are many sizes and Nappa wants to see every pattern there could be so he must write a program in his scouter to show him every possibility of this pattern.

 

 

 

 

Input

The input will contain a single integer N, the strongest soldier at the center.

0<N<1000000

Output

The output will require you to print the entire traingle pattern with the strongest soldier at the center having the N power level.

There need not be space between numbers but there should be a new line at the end of every line.

Sample Input  Download

Sample Output  Download

Tags




Discuss