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