n = int(input()) # 0 = "" # 1 = 1 # 2 = 2020,2121 # 3 = 321321321 str = "" for i in range(n): for j in range(n): str = str + (n-j) a = [int(str)] print("\n".join(map(str, a)))