K = int(input())

loop1 = K // 9
loop2 = K % 9

for i in range(0, loop1+1):
    end = 10
    # 最後のループ
    if i == loop1:
        end = loop2+1
    #print('### %d, %d' % (i, end))
    for j in range(1, end):
        nines = 0
        if i > 0:
            nines = int('9' * i)
        print(nines + (j * 10 ** i))
