const Main = input => {
    const kurai1 = parseInt(input.trim().substring(input.length - 1), 10);

    if([2, 4, 5, 7, 9].includes(kurai1)) {
        console.log("hon");
    } else if([0, 1, 6, 8].includes(kurai1)) {
        console.log("pon")
    } else if([3].includes(kurai1)) {
        console.log("bon");
    }
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));