N = int(input()) l = list(range(10)) l = l[::-1] # print(l) ans = '' for i in range(N): ans += str(l[i]) * N print(ans)