function Main(input){
  var ones = parseInt(input.trim().slice(-1));
  var ans = '';
  var honArray = [2,4,5,7,9];
  var ponArray = [0,1,6,8];
  var bonArray = [3];
  if (honArray.indexOf(ones) !== -1){
    ans = 'hon';
  }else if (ponArray.indexOf(ones) !== -1){
    ans = 'pon';
  }else{
    ans = 'bon';
  }
  console.log(ans);
}
  


Main(require("fs").readFileSync("/dev/stdin", "utf8"));