#include <bits/stdc++.h>
using namespace std;
int main(){
    string N;
    cin>>N;
N=N-N/100*100;
N=N/10*10;
if(N==3){
cout<<"bon"<<endl;
}
else if(i==0||i==1||i==6||i==8){
cout<<"pon"<<endl;
}
else
cout<<"hon"<<endl;
}