k = int(input())

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

cnt = 1
ans_cnt = 0
prev_p = 1/S(1)
while ans_cnt < k:
  cnt += 1
  now_p = cnt/S(cnt)
  if prev_p <= now_p :
    print(cnt-1)
    ans_cnt += 1
  prev_p = now_p



