K = int(input())


def f(n):
    s = 0
    for n_i in str(n):
        s += int(n_i)
    x = int(n) / s
    return x


order = 1
x = 1
for i in range(K):
    print(x)
    if f(x + 10 ** (order - 1)) > f(x + 10 ** (order)):
        order += 1
    x += 10 ** (order - 1)