K = int(input())
digits = [1, 2, 3, 4, 5, 6, 7, 8, 9]
count = 0
i = 0
max_value = 0
while count < K:
    disp = str(digits[i % 9])
    n_nine = int(i / 9)
    for j in range(n_nine):
        disp += '9'
    disp = int(disp)
    if max_value < disp:
        max_value = disp
        count += 1
        if int(disp) <= 10**15:
            print(int(disp))
    i += 1