export class Main {
  static main(input: string): string {
    const tmp: string[] = input.split("\n");
    const a: string[] = tmp.shift().split(" ")[0].split("");
    const x = a[a.length - 1];
    switch (x) {
      case 2:

      case 4:
      case 5:

      case 7:

      case 9:
        return "hon";
      case 0:
      case 1:
      case 6:
      case 8:
        return "pon";
      default:
        return "bon";
    }
  }
}
console.log(Main.main(require("fs").readFileSync("/dev/stdin", "utf8")));
