n=int(input()) if n<=9: for i in range(n): print(i+1,end='') print() else: n-=1 for i in range(n): print(i+1,end='') print(0)