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

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

