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