function main(input) {
  const args = input.split('\n').map(n => parseInt(n, 10));
  const N = args[0];
  const d = N % 10;
  if (d === 3)
    console.log('bon');
  else if (d === 0 || d === 1 || d === 6 || d === 8)
    console.log('pon');
  else
    console.log('hon');
}

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