import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

K = int(read())

cand = set()
for d in range(15):
    for x in range(1,1000):
        y = x*(10**d)-1
        cand.add(y)
cand.remove(0)

cand = sorted(cand,reverse=True)

def S(n):
    x = 0
    while n:
        q,r = divmod(n,10)
        x += r
        n = q
    return x

answer = []
opt_S = 1
opt_N = cand[0]+1
for x in cand:
    s = S(x)
    if x*opt_S <= s * opt_N:
        answer.append(x)
        opt_S = s; opt_N = x

print('\n'.join(map(str,answer[::-1][:K])))