function main(input) {
  const inputs = input.trim().split('\n');
  var N = inputs[0];
  var N1 = N.slice(-1);

  if ('24579'.includes(N1)) {
    console.log('hon');
  } else if ('0168'.includes(N1)) {
    console.log('pon');
  } else {
    console.log('bon');
  }
}

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