function nsn(x)
    s=dec(x)
    n=parse(s)
    sn=sum(x->x-'0',s)
    n / sn
end

function main()
    k = readline() |> parse
    for x=1:k
        n = x % 9
        if n == 0
            n = 9
        end
        keta = cld(x, 9) - 1
        println(n, repeat("9",keta))
    end
end

main()
