fun main(){


    val inputNum = readLine()?.toInt()

    val num: Int

    inputNum?.let {
        num = when(inputNum){
            in 100..999 -> inputNum / 100
            in 10..99 -> inputNum /10
            in 0..9 -> inputNum
            else -> 0
        }
        when(num){
            2,4,5,7,9 -> println("hon")
            0,1,6,8 -> println("pon")
            3 -> println("bon")
        }
    }

}