# /user/bin/python
# -*- coding: utf-8 -*-
import sys


k = int(input())
step = ret = 1
for _ in range(k):
  if step < ret / sum(map(int, list(str(ret)))):
    ret += 9*step
    step *= 10
  else:
    print(ret)
    ret += step
