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

int main() {
  string n;
  cin>>n;
  if(n==3){
    cout<<"bon"<<endl;
  }
  else if(n==0){
    cout<<"pon"<<endl;
  }
  else if(n==1){
    cout<<"pon"<<endl;
  }
  else if(n==6){
    cout<<"pon"<<endl;
  }
  else if(n==8){
    cout<<"pon"<<endl;
  }
  else if(n==2){
    cout<<"hon"<<endl;
  }
  else if(n==4){
    cout<<"hon"<<endl;
  }
  else if(n==5){
    cout<<"hon"<<endl;
  }
  else if(n==7){
    cout<<"hon"<<endl;
  }
  else if(n==9){
    cout<<"hon"<<endl;
  }
  else if(n<100&&n[1]==3){
    cout<<"bon"<<endl;
  }
  else if(n<100&&n[1]==0){
    cout<<"pon"<<endl;
  }
  else if(n<100&&n[1]==1){
    cout<<"pon"<<endl;
  }
  else if(n<100&&n[1]==6){
    cout<<"pon"<<endl;
  }
  else if(n<100&&n[1]==8){
    cout<<"pon"<<endl;
  }
  else if(n<100&&n[1]==2){
    cout<<"hon"<<endl;
  }
  else if(n<100&&n[1]==4){
    cout<<"hon"<<endl;
  }
  else if(n<100&&n[1]==5){
    cout<<"hon"<<endl;
  }
  else if(n<100&&n[1]==7){
    cout<<"hon"<<endl;
  }
  else if(n<100&&n[1]==9){
    cout<<"hon"<<endl;
  }
  else if(n<1000&&n[2]==3){
    cout<<"bon"<<endl;
  }
  else if(n<1000&&n[2]==0){
    cout<<"pon"<<endl;
  }
  else if(n<1000&&n[2]==1){
    cout<<"pon"<<endl;
  }
  else if(n<1000&&n[2]==6){
    cout<<"pon"<<endl;
  }
  else if(n<1000&&n[2]==8){
    cout<<"pon"<<endl;
  }
  else if(n<1000&&n[2]==2){
    cout<<"hon"<<endl;
  }
  else if(n<1000&&n[2]==4){
    cout<<"hon"<<endl;
  }
  else if(n<1000&&n[2]==5){
    cout<<"hon"<<endl;
  }
  else if(n<1000&&n[2]==7){
    cout<<"hon"<<endl;
  }
  else if(n<1000&&n[2]==9){
    cout<<"hon"<<endl;
  }
}
