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