function Main(input) {
  input = input.trim();
  var N = input;

  var Ns = N.split("");

  var saigo = Ns[Ns.length - 1];
  if (saigo == "3") {
    console.log("bon");
    return;
  } else if (saigo == "0" || saigo == "1" || saigo == "6" || saigo == "8") {
    console.log("pon");
    return;
  } else {
    console.log("hon");
    return;
  }
}

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