K = int(input())
i=1
addNum = 1
ans = []
while(K!=0):
        print(i)
        K-=1
        S1 = 0
        S2 = 0
        for j in list(str(i+addNum)):
                S1 += int(j)
        for j in list(str(i+addNum+addNum)):
                S2 += int(j)
        if (i+addNum)/S1 > (i+addNum+addNum)/S2:
                addNum *= 10
        i += addNum