fun main() = Thread(null, ::abc168a, "", 128 * 1024 * 1024).start()

@OptIn(ExperimentalStdlibApi::class)
fun abc168a() {
    val n = readLine()!!.toInt()

    val answer = when (n.toString().last().toString().toInt()) {
        2, 4, 5, 7, 9 -> "hon"
        0, 1, 6, 8 -> "pon"
        else -> "bon"
    }

    println(answer)
}
