function main(input){
  let a = input.slice(-1).trim();
  if(a==="3"){
    console.log("bon");
  }else if(a==="0" || a==="1" || a==="6" || a==="8"){
    console.log("pon")
  }else{
    console.log("hon")
  }
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));