k = gets.chomp.to_i

def s(n)
    nn = n
    ret = 0
    while(nn>0) do
        ret += nn % 10
        nn /= 10
    end
    return ret
end

def f(n)
    nn = n
    i = 0
    ret = 0
    val = 10000000000
    while(nn>0) do
        nn /= 10
        i += 1
        m = (nn+1) * 10 ** i - 1
        if val > m.to_f / s(m)
            val = m.to_f / s(m)
            ret = m
        end
    end
    return ret
end

(1..9).each do |i|
    puts i
    k -= 1
    exit if k == 0
end

n = 10
while(k>0)
    n = f(n+1)
    puts n
    k -= 1
end