SUNUKE_MAX = 10 ** 15

k = gets.to_i

sunuke = []
16.times do |i|
  (1..9).each do |j|
    tmp = j * 10 ** i - 1
    sunuke << j * 10 ** i - 1 unless tmp == 0 || SUNUKE_MAX < tmp
  end
end

k.times do
  puts sunuke.shift
end
