K=int(input())
if K<10:
  for i in range(1,K+1):
    print(i)
else:
  for i in range(1,10):
    print(i)
  K-=9
  cnt=0
  ans=9
  po=1
  while True:
    for i in range(9):
      ans+=10**po
      print(ans)
      cnt+=1
      if cnt==K:
        break
    if cnt==K:
      break
    else:
      po+=1