'use strict'
function main(inp) {
  inp = inp.trim()*1;
  let num = inp%10;
  let ans;
  if(num == 3){
    ans = "bon"
  }else if(num == 0 || num == 1 || num == 6 || num == 8){
    ans = "pon"
  }else {
    ans = "hon"
  }
  console.log(ans);
}

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