N = int(input()) ans = "" for i in range(1, N + 1): if i == 10: i = 0 ans += str(i) * N print(ans)