L=list()
N=int(input())
for i in range(1,N+1):
  s=i//9
  t=i%9
  L.append(((t+1)*pow(10,s))-1)
for i in range(2,19):
  for j in range(1,10):
    L.append((10+j)*pow(10,i)-1)
L=sorted(L)
for i in range(N):
  print(L[i])