def f(num):
    s = 0
    for char in str(num):
        s += int(char)

    return num / s

K = int(input())
num = 1
power = 1
for _ in range(K):
    print(num)
    if f(num + 10 ** (power - 1)) > f(num + 10 ** power):
        power += 1
    num += 10 ** (power - 1)