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

int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int t=1,i,j;
    //cin>>t;
    while(t--)
    {
        int n,m,count=0,sum=0,maxi=0,mini=1e18;
        cin>>n;
      	int temp=n%10;
      if(temp==2 ||temp==4 ||temp==5 ||temp==7 ||temp==9 )
      {
        cout<<"hon";
    	}
      else if(temp==0 || temp==1 || temp==6 || temp==8)
      {
        cout<<"pon";
	  }
      else
      {
        cout<<"bon";
      }
    }