object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datN) = readLine.split(" ").map(_.toInt)

    val ans = (datN % 10) match {
      case x if (x == 2) || (x == 4) || (x == 5) || (x == 7) || (x == 9) => "hon"
      case x if (x == 0) || (x == 1) || (x == 6) || (x == 8) => "pon"
      case x => "bon"
    }
    println(ans)
  }
}
