import sys
def I(): return int(sys.stdin.readline().rstrip())

K = I()

A = [i for i in range(1,100)]  # Snuke数の候補

for i in range(13):
    for j in range(100,1000):
        A.append(j*10**i+10**i-1)

A.sort(reverse=True)
B = []
m = 10**18
for a in A:
    x = a/sum(int(i) for i in list(str(a)))
    if x <= m:
        B.append(a)
        m = x

B.reverse()
print(*B[:K],sep='\n')
