function Main(input) {
  input = input.split("\n");
  var N = parseint(input)%10;
  var ans = "pon";
  if(N==2||N==4||N==5||N==7||N==9){
    ans="hon";
  }else if(N==3){
    ans="bon";
  }

  console.log('%s', ans);
  return ans;
}

function debug(n){
  var input = document.getElementById("input"+n).value;
  var ans=Main(input);
  var result="WA";
  if(ans==document.getElementById("output"+n).value.split("\n")[0]){
    result="AC";
  }
  document.getElementById("result"+n).innerHTML=result;
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));