n = int(input()) ans = "" for i in range(n): for j in range(n): ans += str(9 - j) print(ans)