k = int(input())

import numpy as np

def sunuke(n):
    return n / sum(map(int,list(str(n))))

count_k = 0
for i in range(1,10**15+1):
    d = len(str(i))
    loop_list = np.arange(i,10**(d-1)) * (10 ** (d-1)) + 9
    for j in range(i,10**d):
        if sunuke(i) > sunuke(j):
            break
    else:
        count_k += 1
        print(i)
        if count_k == k:
            break