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