fun main(){
    var num = readLine()!!.toInt()

    if(num < 10){
        judge(num)
    }
    else if(num < 100){
        val onesPlace = num%10
        judge(onesPlace)
    }
    else{
        num = num%100
        val onesPlace = num%10
        judge(onesPlace)
    }

}

fun judge(onesPlace: Int){
    when(onesPlace){
        2, 4, 5, 7, 9 -> println("hon")
        0, 1, 6, 8 -> println("pon")
        3 -> println("bon")
    }
}