K = int(input())

res = [(0, 0)]
mm = 0
for i in range(1, 136):
  n = []
  x = i
  while x > 0:
    n.append(str(min(x, 9)))
    x -= 9
  n.reverse()
  x = int(''.join(n))
  
  while x / i < res[-1][0]:
    res = res[:-1]
  res.append((x / i, x))

for i in range(1, K + 1):
  print(res[i][1])
