iii=int(input())
sunukenumber=0

sn=0
max=0

j=2
while sunukenumber<iii:
  sn=sum(map(int,str(j)))
    
  if max<=j/sn:
    print(j-1)
    max=j/sn
    sunukenumber=sunukenumber+1
    
  sn=0
  j=j+1

exit()