n = gets.chomp.split("").reverse
if n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"
  puts "hon"
elsif n[-1] == "0" || n[-1] == "1" || n[-1] == "6" || n[-1] == "8" 
  puts "pon"
elsif n[-1] == "3"
  puts "bon"
end