#include<iostream>
#include<vector>
using namespace std;

in main(){
  vector<char> N(3);
  for (int i = 0; i < 3; i++){
    cin >> N[i];
  }
  if(N[2] == 3){
    cout << "bon" << endl;
  }else if (N[2] == 0 || N[2] == 1 || N[2] == 6 || N[2] == 8){
    cout << "pon" << endl;
  }else{
    cout << "hon" << endl;
  }
  
  return 0;
}
  
  