n=int(input())
for i in range(n):
    for j in range(n):
        if (i-j==0):
            print( n-i ,end=' ')
        elif (i+j==n-1):
            print(i+1,end=' ')
        else:
            print(' ',end=' ')
    print('\n')

544e1f4dff574d9a2307f22d7ec7c7963eac9494
<mask token>

<mask token>
for i in range(n):
    for j in range(n):
        if i - j == 0:
            print(n - i, end=' ')
        elif i + j == n - 1:
            print(i + 1, end=' ')
        else:
            print(' ', end=' ')
    print('\n')

n = int(input())
for i in range(n):
    for j in range(n):
        if i - j == 0:
            print(n - i, end=' ')
        elif i + j == n - 1:
            print(i + 1, end=' ')
        else:
            print(' ', end=' ')
    print('\n')

n=int(input())
for i in range(n):
    for j in range(n):
        if (i-j==0):
            print( n-i ,end=' ')
        elif (i+j==n-1):
            print(i+1,end=' ')
        else:
            print(' ',end=' ')
    print('\n')
