k = int(input())

old = 0
now = 0
num = 0
Sn = 1
co = 0
def calc(n):
    n = str(n)
    now = 0

    for i in range(len(n)):
        now = now + int(n[i])

    return now

while co < k:
    num = num + 1
    old = now
    now = num
    So = Sn
    Sn = now/calc(now)
    if So <= Sn and old != 0:
        print(old)
        co = co + 1



