k = int(input())

def calcurate_s(num):
  number = 0
  for i in range(0, len(str(num))):
    number += int(str(num)[i])
  return number

count = 0
m = 2
n = 1
while count < int(k):
  if n / calcurate_s(n) <= m / calcurate_s(m):
    print(n)
    count += 1
    n += 1
    m += 1
  else:
    n += 1
    m += 1