function Main(input) {
var tmp = input.trim(); 
var tmp2 = parseInt(tmp.substring(tmp.length-1, tmp.length));
//console.log(tmp2);

if (tmp2 === 0 || tmp2 === 1 || tmp2 === 6 || tmp2 === 8) {
  console.log('pon');
} else if 
  (tmp2 === 3) {
    console.log('bon');
  } else 
  {console.log('hon')};
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));