k = gets.chomp.to_i
count = 0

while k > count && count < 36
  n = (count % 9) + 1
  suffix = count / 9

  ary = [n]
  (1..suffix).each do |i|
    ary.push(9)
  end

  snuke = ary.join('').to_i
  print "#{snuke}\n"

  count += 1
end
