K = int(input())

i = 1
c = 1
while c <= K:
    if i <= 9:
        print(i)
        i += 1
        c += 1
    else:
        n = 9 + 10 * (i - 9)
        n_ = 9 + 10 * (i - 10)
        if n / sum(list(map(int, str(n)))) >= n_ / sum(list(map(int, str(n_)))):
            print(n)
            c += 1
        i += 1
