import os, sys, re, math

lines = sys.stdin.readlines()

k = int(lines[0])

snk1 = 1
snk2 = 1
count = 0
i = 2
while count < k:
    snk2 = sum(int(d) for d in str(i))
    snk2 = (i / snk2)
    if snk1 <= snk2:
        print (i - 1)
        count += 1
    snk1 = snk2
    i += 1
