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()

@functools.lru_cache()
def Sx(i):
  return i/sum(int(s) for s in str(i))

def gen():
  diff = 1
  n = 1
  while True:
    if Sx(n) <= Sx(n+diff):
      yield n
      n += diff
    else:
      n -= diff
      diff *= 10
      n += diff

for n in it.islice(gen(),K):
  print(n)