iii=int(input())
sunukenumber=0

sn=0
max=0

j=2
while sunukenumber<iii:
  jj=str(j)
  for k in range(len(jj)):
    sn=sn+int(jj[k])
    
  if max<=j/sn:
    print(str(j-1))
    max=j/sn
    sunukenumber=sunukenumber+1
    
  sn=0
  j=j+1
