"""
A = []

def S(x):
  return sum(map(int, str(x)))

def f(d, a, s):
  global A
  if d>=15:
    return False
  if s==0:
    t = int("9"*len(str(a)))
    if a*S(t)<=t*S(a):
      A += [a]
      return True
    else:
      return False
  for i in range(min(s, 9)+1)[::-1]:
    if not f(d+1, a+i*10**d, s-i):
      return False
  return True

for i in range(1, 9*15):
  f(0, 0, i)

A.sort()
B = []
for i in range(len(A)):
  ok = True
  for j in range(i+1, len(A)):
    if A[i]*S(A[j])>A[j]*S(A[i]):
      ok = False
  if ok:
    B += [A[i]]

for b in B:
  print b
"""

S = [
  1, 2, 3, 4, 5, 6, 7, 8,
  9, 19, 29, 39, 49, 59, 69, 79,
  89, 99, 199, 299, 399, 499, 599, 699,
  799, 899, 999, 1099, 1199, 1299, 1399, 1499,
  1599, 1699, 1799, 1899, 1999, 2999, 3999, 4999,
  5999, 6999, 7999, 8999, 9999, 10999, 11999, 12999,
  13999, 14999, 15999, 16999, 17999, 18999, 19999, 29999,
  39999, 49999, 59999, 69999, 79999, 89999, 99999, 109999,
  119999, 129999, 139999, 149999, 159999, 169999, 179999, 189999,
  199999, 299999, 399999, 499999, 599999, 699999, 799999, 899999,
  999999, 1099999, 1199999, 1299999, 1399999, 1499999, 1599999, 1699999,
  1799999, 1899999, 1999999, 2999999, 3999999, 4999999, 5999999, 6999999,
  7999999, 8999999, 9999999, 10999999, 11999999, 12999999, 13999999, 14999999,
  15999999, 16999999, 17999999, 18999999, 19999999, 29999999, 39999999, 49999999,
  59999999, 69999999, 79999999, 89999999, 99999999, 109999999, 119999999, 129999999,
  139999999, 149999999, 159999999, 169999999, 179999999, 189999999, 199999999, 299999999,
  399999999, 499999999, 599999999, 699999999, 799999999, 899999999, 999999999, 1099999999,
  1199999999, 1299999999, 1399999999, 1499999999, 1599999999, 1699999999, 1799999999, 1899999999,
  1999999999, 2999999999, 3999999999, 4999999999, 5999999999, 6999999999, 7999999999, 8999999999,
  9999999999, 10999999999, 11999999999, 12999999999, 13999999999, 14999999999, 15999999999, 16999999999,
  17999999999, 18999999999, 19999999999, 29999999999, 39999999999, 49999999999, 59999999999, 69999999999,
  79999999999, 89999999999, 99999999999, 109999999999, 119999999999, 129999999999, 139999999999, 149999999999,
  159999999999, 169999999999, 179999999999, 189999999999, 199999999999, 299999999999, 399999999999, 499999999999,
  599999999999, 699999999999, 799999999999, 899999999999, 999999999999, 1099999999999, 1199999999999, 1299999999999,
  1399999999999, 1499999999999, 1599999999999, 1699999999999, 1799999999999, 1899999999999, 1999999999999, 2999999999999,
  3999999999999, 4999999999999, 5999999999999, 6999999999999, 7999999999999, 8999999999999, 9999999999999, 10999999999999,
  11999999999999, 12999999999999, 13999999999999, 14999999999999, 15999999999999, 16999999999999, 17999999999999, 18999999999999,
  19999999999999, 29999999999999, 39999999999999, 49999999999999, 59999999999999, 69999999999999, 79999999999999, 89999999999999,
  99999999999999,
]

K = input()

for s in S[:K]:
  print s
