#include<bits/stdc++.h>
#define int long long int
#define boost ios_base::sync_with_stdio(false)
#define rep(i,a,b) for(int i=a;i<b;i++)
#define repp(i,a,b) for(int i=a;i<=b;i++)
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
//#define test int t;cin>>t; while(t--)
#define vi vector<int> 
#define mi map<int,int> 
#define rrep(i,a,b) for(int i=a;i>=b;i--)
//typedef pair <int,int> pii
//typedef vector<pii> vpi
#define build(arr,n) { int arr[n+1]; repp(i,1,n)cin>>arr[i]; }
#define buildv(v,n) { vi v; repp(i,1,n){int x; cin>>x; v.pb(x);} } 
#define in_edges(m) repp(i,1,m){int a,b; cin>>a>>b; adj[a].pb(b); adj[b].pb(a);}
#define mod 1000000007
#define pi 3.1415926
#define mx(arr) {*max_element(arr+1,arr+n+1);} 
using namespace std;
//vector<int> adj[100003];
//int vis[100003]={0};
//int dp[n+1]={0};
//vector<int> leaf;
signed main()
{
    int t; cin>>t; 
    string ans;
    int n=t%10;
    if(n==2||n==4||n==5||n==7||n==9)cout<<"hon";
    else if(n==3)cout<<"bon"<<endl;
    else
    cout<<"pon"<<endl;
        
    }
    
}