function Main(input) {
    var N = input[0].split('');
    var last = N[N.length - 1];
    
    var result = 'bon';
    if (last === '2' ||
        last === '4' ||
        last === '5' ||
        last === '7' ||
        last === '9') {
        result = 'hon';
    } else if (last === '0' ||
    last === '1' ||
    last === '6' ||
    last === '8') {
        result = 'pon';
    }

    console.log(result);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));