def Snuke(num):
  n = list(str(num))
  l = [int(s) for s in n]
  return sum(int(i) for i in l)

K = int(input())
n = 1

for _ in range(K):
  while True:
    if n/Snuke(n) <= (n+1)/Snuke(n+1):
      print(n)
      n += 1
      break
    n += 1
