function main(lines) {
  const N = lines[0];

  let res;

  if ( /[24579]$/.test(N) ) res = 'hon';
  else if ( /[0168]$/.test(N) ) res = 'pon';
  else if ( /[3]$/.test(N) ) res = 'bon';

  console.log(res);
}


main( require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n") );



function splitN(s) {
  return s.split(' ').map(Number);
}