k = int(input())

# 関数S(n)
def S(num):
  num = str(num)
  s = 0
  for st in num:
    s += int(st)
  return s

#1~9と〇9のやつだけ出力でよくね？
cnt = 0
n = 0
while cnt < k:
  n += 1
  if 1<=n<=9 or str(n)[-1]=="9":
    print(n)
    cnt += 1
  


