iii=int(input())
sunukenumber=0
counter=0

sn=0
max=0


while sunukenumber<iii:

  sunukenumber=sunukenumber+1
  counter=counter+1
  
  if counter!=10:
    print((counter)%10,end="")
    for m2 in range(0,(sunukenumber-1)//9):print("9",end="")
    print()
  else: counter=0; sunukenumber=sunukenumber-1