n = int(input()) if not n == 1: for i in range(n): for j in range(n): print(n - j - 1, end="") print() else: print(1)