function A168(_input) {
    var lines = _input.split("\n");
    var first = parseInt(lines.shift().slice(-1), 10);
  
    if ([2,4,5,7,9].indexOf(first) !== -1) {
        console.log('hon');
    } else if ([0,1,6,8].indexOf(first) !== -1) {
        console.log('pon');
    } else if ([3].indexOf(first) !== -1) {
        console.log('bon');
    }
}
A168(require("fs").readFileSync("/dev/stdin", "utf8"));