function main(input){
    leng=input.length;
    str =input.slice(-1);
    out='';
    
        if(str=='0' ||str=='1' || str=='6' || str=='8'){
            out='pon';
        }
        else if(str=='2' || str=='4' || str=='5' || str=='7' || str=='9'){
            out='hon';
        }
        else if(str=='3'){
            out='bon';
        }
      
      console.log(out);
     
    }
     
    main(require("fs").readFileSync("/dev/stdin", "utf8"));