#P367. 练63.1 蛇行三角形

练63.1 蛇行三角形

Description

A snake-like triangle with nn rows is formed by arranging natural numbers starting from 11 in an upper triangular matrix.
The first row has nn numbers, and each subsequent row has one fewer number. See the sample for the specific pattern.

Input Format

Input an integer nn, where 1n1001 \le n \le 100.

Output Format

Output the snake-like triangle with nn rows.

Sample

5
1 3 6 10 15
2 5 9 14
4 8 13
7 12
11