const main = (args) => {
    const input = args.trim().split("\n");
    const N = parseInt(input[0], 10) % 10;

    const p = [0,1,6,8];

    if( N == 3 ) {
        console.log("bon");

    } else if( p.includes(N) ) {
        console.log("pon");
    } else {
        console.log("hon")
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf-8'));