loop do

print "N?"
num = gets.to_i

if num < 1000 && num > 0 
  if num % 10 == 3
    puts "#{num} bon"
  elsif num  % 10 == 0 || num  % 10 == 1 || num  % 10 == 6 || num % 10 == 8 
    puts "#{num} pon"
  else 
    puts "#{num} hon" 
end
end
end