function main(input) {
  const last = input.slice(-1);
  if(last === '3'){
    console.log('bon');
  }else if(['0', '1', '6', '8'].includes(last)){
    console.log('pon');
  }else{
    console.log('hon');
  }
}

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