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-i) a = [ans] print("\n".join(map(str, a)))