// Harry Singh**************************************************************************************************************

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
 using namespace std;
#define endl '\n'
#define ll long long 
#define maxn 100010
const int MOD = 1000000007;
bool prime[20000000+3]; 

void harry_singh(){

   
   int n;cin>>f;
   string s=to_string(f);
   int n=s.length();
   if(s[n-1]=='1' || s[n-1]=='0' ||s[n-1]=='6' ||s[n-1]=='8' )cout<<"pon\n";
   else if(s[n-1]=='2' || s[n-1]=='4' ||s[n-1]=='5' ||s[n-1]=='7' ||s[n-1]=='9' )cout<<"hon\n";
   else cout<<"bon\n";
}
 
int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
 
    int t=1;
    while (t--)
   harry_singh();
    return 0;
}