function Main(input){
    input=input.split("\n");  //ここまで必須
    var kosu=parseInt(input[0].length)-1;
    var kai=input[0].slice(kosu,kosu+1);

    if(input[0].slice(kosu,kosu+1)==3){console.log("bon")}
    else if(kai==0){console.log("pon")}
    else if(kai==1){console.log("pon")}
    else if(kai==6){console.log("pon")}
    else if(kai==8){console.log("pon")}
    else {console.log("hon")}
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));