K = int(input())

snuke = [1]

cnt = 0
old_candidate = 1
for i in range(3, K**15 + 1):
    s_n = 0
    t = i
    while t > 0:
        s_n += t%10
        t //= 10
    candidate = i / s_n
    if candidate >= old_candidate:
        snuke.append(i-1)
        old_candidate = candidate
        cnt += 1
    if cnt == K - 1:
        break

for val in snuke:
    print(val)
