package ABC168.a

import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.next()

    println(n.toVector.last.toString match {
      case "2" | "4" | "5" | "7" | "9" => "hon"
      case "0" | "1" | "6" | "8" => "pon"
      case _ => "bon"
    })

  }
}
