k = int(input())

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


for i in range(1, min(k+1, 10)):
    print(i)

if k >= 10:
    for i in range(1, min(k-9, 10)):
        print(str(i)+"9")
    if k >= 19:
        k = k - 18
        c = 199
        scc = S(199)/199
        while k > 0:
            cp = c+100
            scpcp = S(cp)/cp
            if scc >= scpcp:
                print(c)
            c, scc = cp, scpcp
            k -= 1
