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

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