K = int(input())


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


i = 1
n = 0
cnt = 1
while cnt <= K:
    x = str(i) + '9' * n
    print(x)
    # print(x, f(x))
    i += 1
    if i > 9:
        y = str(i) + '9' * n
        z = str(i + 1) + '9' * n
        if f(y) > f(z):
            i = 1
            n += 1
    cnt += 1
