K = int(input())


def f(n):
    return n / sum([int(s) for s in str(n)])


n = 1
ans = []
while len(ans) < K:
    min_f_val, next_n = float('inf'), n
    for i in range(len(str(n))):
        x = str(n)[:len(str(n)) - i] + '9' * i

        f_val = f(int(x))
        if f_val < min_f_val:
            next_n = int(x, base=10)

    ans.append(next_n)
    n = max(n + 1, next_n)

print(*ans, sep='\n')
