# -*- coding: utf-8 -*-

k = int(input())

targets = []
for i in range(1, 10**4*5):
    targets.append(i/sum(list(map(int, list(str(i))))))

min_list = [10**10]
for target in reversed(targets):
    min_list.insert(0, min([min_list[0], target]))

i = 0
count = 1
while count <= k:
    if targets[i] <= min_list[i]:
        print(i+1)
        count += 1
    i += 1
