def main
  n = gets.chomp.to_i
  solve(n)
end

def sunuke(i)
  s = i.to_s.split('').map(&:to_i).inject(:+)
  i.to_f / s.to_f
end

def solve(n)
  c = 0
  i = 1
  loop do
    if sunuke(i) <= sunuke(i + 1)
      puts i
      c+= 1
    end
    i += 1
    break if c >= n
  end
end

main if $0 == __FILE__