"use strict";

const main = (arg) => {
  const array = arg.trim().split("");
  const lastNumber = array[array.length - 1];
  if (lastNumber == 3) {
    console.log("bon");
  } else if (
    lastNumber == 0 ||
    lastNumber == 1 ||
    lastNumber == 6 ||
    lastNumber == 8
  ) {
    console.log("pon");
  } else {
    console.log("bon");
  }
};
main(require("fs").readFileSync("/dev/stdin", "utf8"));
// main("183");
// https://atcoder.jp/contests/abc168/tasks/abc168_a
