K = int(input())

a,b = [],[]
for i in range(16):
    for j in range(1,101):
        a.append(int(str(j)+"9"*i))
        b.append(a[-1] / sum(list(map(int, str(a[-1])))))

n = 0
while True:
    for i in range(len(b)):
        if min(b[i:]) >= b[i]:
            print(a[i])
            n += 1
            if n == K: exit()
