k = gets.to_i
count = 0

n = [*1..9]

n.each do |n|
  puts n
  count += 1
  if k == count
    exit 0
  end
end

start = 19

0.upto(10**15) do |i|
  puts start + i*10
  count += 1
  if k == count
    exit 0
  end
end
