from collections import defaultdict as dd
from collections import Counter
from pprint import pprint as pp
import itertools as it
import functools
import math

YN = {True: 'Yes', False: 'No'}
ri = lambda: int(input())
ria = lambda: list(map(int, input().split()))
rian = lambda n: [ria() for _ in range(n)]
rs = lambda: input()
rsa = lambda: input().split()
rsn = lambda n: [rs() for _ in range(n)]

K = ri()

def Sx(i):
  return i/sum(int(s) for s in str(i))

def gen(cnt):
  mi = 1
  ms = Sx(mi)
  while cnt > 0:
    ni, ns = mi, ms
    mi += 1
    ms = Sx(mi)
    if ns <= ms:
      yield ni
      cnt -= 1

for ni in gen(K):
  print(ni)