#include<bits/stdc++.h>
using namespace std;
 
#define fi              first
#define se              second
#define ll             long long
#define pb              push_back
#define mp              make_pair
#define pll             pair<ll,ll>
#define vll              vector<int>
#define mll             map<ll,ll>
#define pqg             priority_queue<ll>
#define pqs             priority_queue<ll,vll,greater<ll> >
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define md             1000000007
#define inf             1e18
#define ps(x,y)         fixed<<setprecision(y)<<x
#define mk(arr,n,type)  type *arr=new type[n];
#define w(x)            ll x; cin>>x; while(x--)
 
#define IJ \
    freopen("input.txt", "r", stdin); 
#define OJ \
    freopen("output.txt", "w", stdout);
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
 
int main()
{
    //IJ; OJ; 
    FIO;
    int a,a1;
    cin>>a;
      a1=a%10;
      if(a1=="2" || a1=="4" || a1=="5" || a1=="7" || a1=="9")
        cout<<"hon";
      else if(a1=="0" || a1=="1" || a1=="6" || a1=="8")
        cout<<"pon";
      else if(a1=="3")
        cout<<"bon";
      break;
    
    return 0;
} 