k = int(input())
n = 0

for i in range(1,1000000000000000):
  if i <= 9 :
    print(i)
    n += 1
  else :
    i_s = str(i)
    if i_s[len(i_s)-1] == '9' :
      print(i)
      n += 1
  if n == k :
    break