fun main (args:Array<String>){
    val num = readLine()
    if (num != null) {
        if(num.endsWith("3")){
            print("bon")
        }
        else if(num.endsWith("0")){
            print("pon")
        }else if(num.endsWith("1")){
            print("pon")
        }else if(num.endsWith("6")){
            print("pon")
        }else if(num.endsWith("8")){
            print("pon")
        }
        else{
            print("hon")
        }

    }
}