"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = (arg[0].split(" ")[0]);
    const last = N.split("")[N.length-1];
    
    if(
        last === "2" ||
        last === "4" ||
        last === "5" ||
        last === "7" ||
        last === "9"
    ) {
        console.log("hon");
    } else if (
        last === "0" ||
        last === "1" ||
        last === "6" ||
        last === "8"
    ) {
        console.log("pon");
    } else {
        console.log("bon");
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));