var Main = (input) => {
       if([ "2", "4", "5", "7", "9" ].includes(input[0])) console.log("hon");
  else if([ "0", "1", "6", "8"      ].includes(input[0])) console.log("bon");
  else if([ "3"                     ].includes(input[0])) console.log("pon");
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));