K = int(input())
#K = 1000

def S(n):
    res = 0
    while(n!=0):
        res += n%10
        n = n//10
    return res

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

l = []
for i in range(1, 100000):
    l.append([i, snuke(i)])

l = sorted(l, key=lambda l: l[1])

for i in range(K):
    print(l[i][0])

