#include <bits/stdc++.h>
using namespace std;

int main() {
  string N;
  cin>>N;
  
  int x=N.size();
    
  if(x==1){
    if(N==3)
      cout<<"bon"<<endl;
    else if(N==0||N==1||N==6||N==8)
      cout<<"pon"<<endl;
    else
      cout<<"hon"<<endl;
  }
  
  if(x==2){
    string s = N.at(1);
    if(s==3)
      cout<<"bon"<<endl;
    else if(s==0||s==1||s==6||s==8)
      cout<<"pon"<<endl;
    else
      cout<<"hon"<<endl;
  }
  
  if(x==3){
    string t = N.at(2);
    if(t==3)
      cout<<"bon"<<endl;
    else if(t==0||t==1||t==6||t==8)
      cout<<"pon"<<endl;
    else
      cout<<"hon"<<endl;
  }
    
}
