process.stdin.resume();
process.stdin.setEncoding("utf8");

process.stdin.on("data", function(input) {
  let a = input % 10;
  if (a === 2 || a === 4 || a === 5 || a === 9) {
    console.log("hon");
  } else if (a === 0 || a === 1 || a === 6 || a === 8) {
    console.log("pon");
  } else if (a === 3) {
    console.log("bon");
  }
});