n=int(input())
c=0
if(n<28):
  for i in range(1,n+1):
    print((i%9+1)*10**(i//9)-1)
else:
  for i in range(1,28):
    print((i%9+1)*10**(i//9)-1)
  for i in range(28,n+1):
    if(c==n-27):
      break
    x=i//9
    y=i%9
    j=(y+1)*10**x-1
    k=(((i+1)%9+1)*10**((i+1)//9)-1)/(i+1)
    for l in range(1000):
      if(sum(map(int,list(str(l))))==18+y):
        a=(l+1)*10**(x-2)-1
        if(a/i<=k):
          c+=1
          print(a)