K = int(input())
#
# for i in ragen(1, K + 1):
#     if i < 10:
#         print(i)
#     elif i <



for i in range(1, K + 1):
    moji = ''
    margin = i % 9
    sho = i // 9
    if i > 27:
        j = i - 28 + 10
        jsho = j // 99
        jamari = (i - 28 + 10) % 99
        if jamari == 0:
            moji += '9'
            for j in range(jsho):
                moji += '9'
        else:
            moji += str((i - 28 + 10) % 99)
            for k in range(jsho):
                moji += '9'
        moji += str(99)

    elif margin == 0:
        for j in range(sho):
            moji += '9'
    else:
        moji += str(i % 9)
        for j in range(sho):
            moji += '9'
    print(int(moji))