fun main(args: Array<String>) {
val num = readLine()

val numS=num.toString()
if(numS.endsWith("2")||numS.endsWith("4")||numS.endsWith("5")||numS.endsWith("7")||numS.endsWith("9")){
println("hon")
}else if(numS.endsWith("0")||numS.endsWith("1")||numS.endsWith("6")||numS.endsWith("8")){
println("pon")
}else if(numS.endsWith("3")){
println("bon")
}
}