import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {

    val sc = new Scanner(System.in)
    val n = sc.next()

    val last = n.toCharArray.last.toString

    if (Seq("2", "4", "5", "7", "9").contains(last)) println("hon")
    else if (Seq("0", "1", "6", "8").contains(last)) println("pon")
    else println("bon")

  }

}
