"use strict";

const main = (input) => {
    const spi = input.split('\n');
    const n = parseInt(spi[0]);
    n = (n % 100) % 10;

    if (n === 3) console.log("bon");
    else if (n === 0 || n === 1 || n === 6 || n === 8) console.log("pon");
    else console.log("hon");
};

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