#include <bits/stdc++.h>
using namespace std;
int main(){

  int N;
  cin>>N;
  
  if(N<10){
  
    if(N==0||1||6||8){
    
      cout<<"pon"<<endl;
    }
    else if(N==3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;    
    }
  }
  else if(N>9&&N<100){
  
    int x;
     x=N%10;
       
       cin>>x;
       if(x==0||1||6||8){
    
      cout<<"pon"<<endl;
    }
    else if(x==3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;  
    }
  }
  else{
  int x=N%10
    if(x==0||1||6||8){
    
      cout<<"pon"<<endl;
    }
    else if(x==3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;   
    }
  }
    
}
