K = int(input())

count = 0
i = 0
start_p = 1
#2分探索
while True:
    i += 1
    sunuke_m = list(map(int, list(str(start_p+1))))
    sunuke_n = list(map(int, list(str(start_p))))
    sunuke_m = (start_p+1)/sum(sunuke_m)
    sunuke_n = (start_p)/sum(sunuke_n)

    if sunuke_m >= sunuke_n:
        count += 1
        print(start_p)
        if count == K:
            break

    start_p += 1



