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