K=int(input())

def NS(N):
  NS=0
  while(N>0):
    NS+=N%10
    N//=10
  return NS

answer_list=list(range(1,10))
for i in range(1,10):
  answer_list.append(10*i+9)
  
for d in range(2,18):
  for h in range(1,10):
    first=h*10**d+10**(d-1)-1
    second=h*10**d+2*10**(d-1)-1
    if first/NS(first)<second/NS(second):
      for i in range(1,11):
        answer_list.append(h*10**d+i*10**(d-1)-1)
    else:
      answer_list.append(h*10**d+10**d-1)
      
#print(len(answer_list))
for i in range(K):
  print(answer_list[i])