fun main(args: Array<String>) {
  val n = readLine()?.toInt()?:0
  val one = n % 10
  if ((one == 2) || (one == 4) || (one == 5) || (one == 7) (one == 9)) {
    println("hon")
  } else if ((one ==0) || (one == 1) || (one == 6) || (one == 8)) {
    println("pon")
  } else {
    println("bon")
  }
}