#P368. 练63.2 斜行方阵

练63.2 斜行方阵

Description

Input an integer NN and output the corresponding square matrix.

Input Format

Input an integer nn, where 1n181 \le n \le 18.

Output Format

A square matrix where each number has a field width of 44.

Sample

5
11   7   4   2   1
16  12   8   5   3
20  17  13   9   6
23  21  18  14  10
25  24  22  19  15