N = gets.split("").map(&:to_i)
case N.last
when 1
  print "pon"
when 2
  print "hon"
when 3
  print "bon"
when 4
  print "hon"
when 5
  print "hon"
when 6
  print "pon"
when 7
  print "hon"
when 8
  print "pon"
when 9
  print "hon"
when 0
  print "pon"
end