"use strict";
var input = require("fs").readFileSync("/dev/stdin", "utf8");
var cin = input.trim().split(/ |\n/), cid = 0;

function main() {
    let N = +cin.shift().slice(-1);
    switch (N) {
        case 2:
        case 4:
        case 5:
        case 7:
        case 9:
            console.log("hon");
            break;
        case 0:
        case 1:
        case 6:
        case 8:
            console.log("pon");
            break;
        default:
            console.log("bon");
    }
}
main();