k = gets.chomp.to_i

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

m = 1
while(true) do
    m *= 10
    for j in 2..10 do
        puts  m * j - 1
        k -= 1
        exit if k == 0
    end
end
