#Program to print half diamond Number-Star pattern:
#  3*3*3
#  2*2
#  1
#  1
#  2*2
#  3*3*3


N = int(input("Enter the Value of N: "))
for i in range(N):
    print((str(N - i) + "*") * (N - 1 - i) + str(N - i))
for i in range(2,N + 1):
    print((str(i) + "*") * (i - 1) + str(i))
