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

function main(input) {
  n = parseInt(input);
  n = n % 10;
  if ([2, 4, 5, 7, 9].includes(n)) {
    console.log('hon');
  } else if ([0, 1, 6, 8].includes(n)) {
    console.log('pon');
  } else {
    console.log('bon');
  }
}
