fun main(args: Array<String>) {
    var n = readLine()!!.toInt() % 10
    when (n) {
        3 -> println("bon")
        2 or 4 or 5 or 7 or 9 -> println("hon")
        else -> println("pon")
    }
    
}