#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
using namespace std;

int main() {
  int X , ans=0;
  cin >> X;
  ans = X % 10
  if(ans == 3){
    cout << "bon" << endl;
  }
  else if(ans == 1){
    cout << "pon" << endl;
  }
  else if(ans == 2){
    cout << "hon" << endl;
  }
  else if(ans == 4){
    cout << "hon" << endl;
  }
  else if(ans == 5){
    cout << "hon" << endl;
  }
  else if(ans == 6){
    cout << "pon" << endl;
  }
  else if(ans == 7){
    cout << "hon" << endl;
  }
   else if(ans == 8){
    cout << "pon" << endl;
  }
   else if(ans == 9){
    cout << "hon" << endl;
  }
   else if(ans == 0){
    cout << "hon" << endl;
  }
  
  
  
   

        
  
}
