"use strict";

function main(input) {
  input = input.trim().split("");
  const n = parseInt(input.pop());
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    console.log("hon");
    return;
  }
  if (n == 0 || n == 1 || n == 6 || n == 8) {
    console.log("pon");
    return;
  }
  if (n == 3) {
    console.log("bon");
    return;
  }
}

main(require("fs").readFileSync("/dev/stdin", "utf-8"));
