fun main(args: Array<String>) {
  val N = readInt()
  val n = N % 10
  println(
    when (n) {
      0 -> "pon"
      1 -> "pon"
      2 -> "bon"
      3 -> "hon"
      4 -> "hon"
      5 -> "hon"
      6 -> "pon"
      7 -> "hon"
      8 -> "pon"
      9 -> "hon"
      else -> ""
    }
  )
}

fun readString() = readLine()!!
fun readStrings() = readString().split(" ")
fun readInt() = readString().toInt()
fun readLong() = readString().toLong()
fun readInts() = readStrings().map { it.toInt() }
fun readLongs() = readStrings().map { it.toLong() }
