import std;
enum inf(T)()if(__traits(isArithmetic,T)){return T.max/4;}
T scan(T=long)(){return readln.chomp.to!T;}
void scan(T...)(ref T args){auto input=readln.chomp.split;foreach(i,t;T)args[i]=input[i].to!t;}T[] scanarr(T=long)(){return readln.chomp.split.to!(T[]);}
//END OF TEMPLATE

void main(){
    auto n=scan!size_t;
    switch(n%10){
        case 2,4,5,7,9:
            "hon".writeln;
            break;
        case 0,1,6,8:
            "pon".writeln;
            break;
        default:
            "bon".writeln;
    }
}
