#include<bits/stdc++.h>
#include<cstdlib>
using namespace std;
int main(){
  int N; cin>>N;
  K=N%10;
  if(K==3)
    cout<<"bon"<<endl;
  else if(K==2||K==4||K==5||K==7||K==9)
    cout<<"hon"<<endl;
  else cout<<"pon"<<endl;
}