
fun main(){

    var scanner: Scanner = Scanner(System.`in`)

    val inputNum = scanner.nextInt()

    val num: Int

    if (inputNum >= 100){
        num = inputNum / 100
    }else if (inputNum >= 10){
        num = inputNum / 10
    }else{
        num = inputNum
    }

    when(num){
        2,4,5,7,9 -> println("hon")
        0,1,6,8 -> println("pon")
        3 -> println("bon")
    }
}