#include <iostream>
 using namespace std;
  int main(){
      int N;
      int n=N%100%10;
    cin >> N >> n;
      if(n==2,4,5,7,9){
          cout << "hon" << endl;
        else if(n==0,1,6,8){
            cout << "pon" << endl;
        }  
        else{
            cout << "bon" << endl;
        }
      }
  }