fun main(args: Array<String>) {
    val n = readLine()!!.toInt() % 10
    val hon = setOf(2, 4, 5, 7, 9)
    val pon = setOf(0, 1, 6, 8)

    when {
        hon.contains(n) -> print("hon")
        pon.contains(n) -> print("pon")
        else -> print("bon")
    }
}
