5400: 【63课】【3369】迂回方阵

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:18 Solved:8

Description

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

Input

输入一个整数 n1n18

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