#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)

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