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

int main() {
  int N;
  cin >> N;

  if(N<10){
    if(N == 2||4||5||7||9){
      cout << "hon" << endl;
    }
    else if(N == 1||6||8){
      cout << "pon" << endl;
    }
    else{
      cout << "bon" << endl;
    }
  }
  else if(9<N&&N<100){
    if(N.at(1)=3){
      cout << "bon"<< endl;
    }
    if(N.at(1)=0||1||6||8){
      cout << "pon"<< endl;
    }
    else{
      cout << "hon" << endl;
    }
  }
  else{
    if(N.at(2)=3){
      cout << "bon"<< endl;
    }
    if(N.at(2)=0||1||6||8){
      cout << "pon"<< endl;
    }
    else{
      cout << "hon" << endl;
    }
    
  }
}
