a="" for i in range(int(input())):a+=str((i+1)%10) print(a)