
function Main(input) {
    input = input.trim();
    var a = parseInt(input[input.length-1])
    if(a == 2 || a == 4 || a == 5|| a == 7 || a == 9) console.log('hon');
    if(a == 0 || a == 1 || a == 6|| a == 8 ) console.log('pon');
    if(a == 3 ) console.log('bon');
}

Main(require("fs").readFileSync("/dev/stdin", "utf8")); 
