K = int(input())

TOP = [10,11,12,13,14,15,16,17,18,19,29,39,49,59,69,79,89,99]

for i in range(1, K+1):
    if i <= 27:
        top = i % 9
        digit = i // 9
        nines = 0
        if digit > 0:
            nines = int('9' * digit)
        print((top * 10 ** digit) + nines)
    else:
        digit = (i - 27 - 1) // 18 + 3
        top_i = (i - 27 - 1) % 18
        top = TOP[top_i]
        nines = int('9' * (digit - 1))
        print((top * 10 ** (digit - 1)) + nines)
