object Main extends App {
  import scala.io.StdIn._
  val lastChar = readLine().last

  if ("24579".contains(lastChar)) {
    println("hon")
  } else if ("01268".contains(lastChar)) {
    println("pon")
  } else {
    println("bon")
  }
}