import * as fs from 'fs';

export function Main(input: string) {
    const n = parseInt(input);   // ?
    const last = input[input.length - 1];   // ?

    let result = '';
    if (new Set(['2', '4', '5', '7', '9']).has(last)) {
        result = 'hon';
    } else if (new Set(['0', '1', '6', '8']).has(last)) {
        result = 'pon';
    } else {
        result = 'bon';
    }


    //output

    console.log(result);
    return result;
}

// Don't edit this line!
Main(fs.readFileSync("/dev/stdin", "utf8"));
