#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define pi 3.1415926536
#define pb push_back
#define N 1000000007
#define M 998244353
#define rep(i,a,b) for(int i=a;i<=b;i++)
#define nrep(i,a,b) for(int i=a;i>=b;i--)

int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    ll t,i,j,k,q,x,y,l,r,z,n,flag =0,ans;
//    cin>>t;
//    while(t--){
      cin>>n;
      x = n%10;
	  if(x == 3)cout<<"bon";
	  else if(x == 0 || x == 1 || x == 6 || x == 8 ) cout<"pon";
	  else cout<<"hon";
//	}
}