2265: 螺旋方阵

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:7

Description

输入整数N,输出相应方阵。



Input

一个整数N。( 0 < n < 18 )



Output

一个方阵,每个数字的场宽为4。



Sample Input Copy

5

Sample Output Copy

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

Source/Category