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