k = int(input())

a = 1
b = 1

def snk(n):
    s = 0
    for i in str(n):
        s += int(i)
    return n / s

for _ in range(k):
    print(a)
    if snk(a + 10 ** (b -1)) > snk(a + 10 ** b):
        b += 1
    a += 10 ** (b-1)
