Page not loading? Try clicking here.
Placeholder

#5947

Number triangle 3 1s 32MB

Problems

Write a program that, given the height 𝑛 of a triangle, prints the triangle in the specified pattern.


Input

A single integer 𝑛 is given, representing the height of the triangle.

𝑛 is an odd integer not exceeding 50.


Output

Print the triangle with height n. Separate numbers with a space.

If the input value is outside the specified range, output INPUT ERROR!.


Example #1

3
1 
1 2
1

Example #2

7
1
1 2
1 2 3
1 2 3 4
1 2 3
1 2
1


Source

JUNGOL

You must sign in to write code.