process.stdin.resume();
process.stdin.setEncoding('utf8');
var lines = [];
var reader = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout,
    terminal: false
});
reader.on('line', (line) => {
    lines.push(line);
});
reader.on('close', () => {
    let n = parseInt(lines[0]) % 10;
    if (n === 2 || n === 4 || n === 5 || n === 7 || n === 9){
        console.log("hon");
    } else if (n === 0 || n === 1 || n === 6 || n === 8){
        console.log("pon");
    }
    else {
        console.log("bon");
    }
});