function Main(input)
{
    input = input % 10;
    if (input === 3) {
        console.log("bon");
    } else if ([2,4,5,7,9].includes(input)) {
        console.log("hon");
    } else {
        console.log("pon");
    }
}

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