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

}