1065: 靶型矩阵

Memory Limit:128 MB Time Limit:0.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:1

Description

例5.8 n阶靶型矩阵。4阶、5阶靶型矩阵如下图: 1 1 1 1 1 2 2 1 1 2 2 1 1 1 1 1 1 1 1 1 1 1 2 2 2 1 1 2 3 2 1 1 2 2 2 1 1 1 1 1 1                   输入n,输出n阶靶型矩阵。

Input

一行,一个整数n(≤20)。

Output

n行,即n阶靶型矩。

Sample Input Copy

5

Sample Output Copy

1 1 1 1 1
1 2 2 2 1
1 2 3 2 1
1 2 2 2 1
1 1 1 1 1