fun main(){
    val n = readLine()!!.split(" ").map { it.toInt() }[0]
    val a = n % 10
    if (a == 2 || a == 4 || a == 5 || a== 7 || a == 9) println("hon")
    else if (a == 0 || a == 1 || a== 6 || a == 8) println("pon")
    else println("bon")
}