fun main(args:Array<String>){
    val N = readLine()!!.split("").filter { it != "" }.map{it.toInt()}
    val c = listOf<Int>(2,4,5,7,9)
    val d = listOf<Int>(0,1, 6, 8)
    

    if(c.contains(N.last())){
        println("hon")
    }else if(d.contains(N.last())){
        println("pon")
    }else if(N.last() == 3){
        println("bon")
    }
}