#include <stdc++.h>
using namespace std;
#define EXCEPTERROR cout << "-1" << endl;
#define rep(k,nu)    for(int i=k; i<nu;  i++)
#define rep2(k,n)   for(int j=k; j<n;  j++)
#define size_s(s) s.size()-1
#define size_a(array) sizeof(array) / sizeof(array[0])
#define INF 1000000000000 //1e12
#define MOD 10000007 //1e9+7
#define ll long long
#define pb pop_back
template<typename T> inline void chMin(T* a, T* b) {if(*a>*b) *a=*b;}
template<typename T> inline void chMax(T* a, T* b) {if(*a<*b) *a=*b;}
template<typename T> inline int  divUp(T a, T b)   {return ((a+b-1)/b);}

int main(){
    string str; cin >> str;
    if(str[size_s(str)] == '3') {
        cout << "bon" << endl; return 0;
    }

    if(str[size_s(str)] == '0' || str[size_s(str)] == '1' ||
       str[size_s(str)] == '6' || str[size_s(str)] == '8'){
           cout << "pon" << endl; return 0;
       }

    cout << "hon" << endl; return 0;
}

/*

*/