fun main(args: Array<String>) {
    val n = readLine()!!.toCharArray()
    when ((n.last() - '0').toInt()) {
        2, 4, 5, 7, 9 -> println("bon")
        0, 1, 6, 8 -> println("pon")
        3 -> println("bon")
    }
}