const main = arg => {
  let returnString = 'hon';
  const n = arg.trim().split('\n')[0].slice(-1);

  if (n === '3') {
    returnString = 'bon';
  } else if (['0', '1', '6', '8'].includes(n)) {
    returnString = 'pon';
  }
  console.log(returnString);
};

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
