#include <iostream>
using namespace std;

int N;
int S;

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