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



// Find the last digit 
int lastDigit(int n) 
{ 
	// return the last digit 
	return (n % 10); 
} 

// Driver program 
int main() 
{ 
	int n;
    cin>>n;
	switch(lastDigit(n))
    {
      case 1:
        cout<<"pon"<<endl;
          break;
       case 2:"hon"<<endl;
        cout<<
          break;
       case 3:
        cout<<"bon"<<endl;
          break;
       case 4:
        cout<<"hon"<<endl;
          break;
       case 5:
        cout<<"hon"<<endl;
          break;
       case 6:
        cout<<"pon"<<endl;
          break;
        case 7:
        cout<<"hon"<<endl;
          break;
        case 8:
        cout<<"pon"<<endl;
          break;
        case 9:
        cout<<"hon"<<endl;
          break;
        case 0:
        cout<<"pon"<<endl;
          break;
    }
	return 0; 
} 
