#include<iostream>
using namespae std;

int main(){
  int n;
  cint>>n;
  int no = n%10;
  swith(no){
    case 1:
          cout<<"pon";
   		  break;
    case 0:
    	  cout<<"pon";
   		  break;
     case 6:
    	  cout<<"pon";
   		  break;
     case 8:
    	  cout<<"pon";
   		  break;
     case 3:
    	  cout<<"bon";
   		  break;
     case 2:
    	  cout<<"hon";
   		  break;
     case 4:
    	  cout<<"hon";
   		  break;
     case 5:
    	  cout<<"hon";
   		  break;
     case 7:
    	  cout<<"hon";
   		  break;
     case 9:
    	  cout<<"hon";
   		  break;
  }
}