object Main extends App{
  var n = scala.io.StdIn.readInt
  n.toString.last match{
    case '2'|'4'|'5'|'7'|'9' => printf("hon")
    case '0'|'1'|'6'|'8' =>printf("pon")
    case '3'=>printf("bon")
  }
}
