K = int(input())

def S(n):
    return sum(map(int, list(str(n))))

def norm(n):
    return n/S(n)

snk = 1
order = 0
for i in range(K):
    print(snk)
    nxt1 = snk + 10 ** order
    nxt2 = snk + 10 ** (order + 1)
    if norm(nxt2) < norm(nxt1):
        order += 1
        snk = nxt2
    else:
        snk = nxt1
