function Main(input) {
  input = input.replace(/\n/g, ' ');
  input = input.split(" ");
  var A = input[0];
  var B = A.slice(A.length-1);
  var ans  = "";
  switch(B){
    case "0": ans="pon";break;
    case "1": ans="pon";break;
    case "2": ans="hon";break;
    case "3": ans="bon";break;
    case "4": ans="hon";break;
    case "5": ans="hon";break;
    case "6": ans="pon";break;
    case "7": ans="hon";break;
    case "8": ans="pon";break;
    case "9": ans="hon";break;
  }
  console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));