#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define fast ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0);
#define INF 1000000000001
#define DIM 100001
#define mod 1000000007
#define PI 3.1415926535897932384626433
#define se second
#define fi first
#define pb push_back
#define T true
#define F false
#define endl "\n"
#define gg cout<<"OPS"<<endl;
#define qwe return 0;
#define amen exit(0);
typedef char ch;
typedef bool boll;
typedef string st;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
typedef set < string > sst;
typedef set < long long > sll;
typedef queue < long long > que;
typedef deque < long long > deq;
typedef vector < long long > vec;
typedef map < long long, long long > mll;
typedef pair < long long, long long > pll;
typedef vector < pair < long long, long long > > vpl;
typedef pair < long long, unsigned long long > pul;
typedef tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> sat_set;
ll t,n;
int main()
{
     fast;
     ll k=0;
     st ss;
     cin>>ss;
     for(int i=0;i<ss.size();i++){
        if(ss[i]=='2' || ss[i]=='4' || ss[i]=='5' || ss[i]=='7' || ss[i]=='9'){
            cout<<"hon"<<endl;
            break;
        }
        else if(ss[i]=='0' || ss[i]=='1' || ss[i]=='6' || ss[i]=='8'){
            cout<<"pon"<<endl;
            break;
        }
        else {
            cout<<"bon"<<endl;
            break;
        }
     }
}
