x=int(input()) if x==1:print(1);exit() print("".join((str((i-1)%10)*x) for i in range(x,0,-1)))