#include<bits/stdc++.h>
using namespace std;
using Graph=vector<vector<int>>;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
typedef long long ll;
int main(){
    string S;
    cin>>S;
    if(S.at(S.size()-1))=='3'){
        cout<<"bon"<<endl;
    }
    else if(S.at(S.size()-1))=='0'||S.at(S.size()-1))=='1'||S.at(S.size()-1))=='6'||S.at(S.size()-1))=='8'){
        cout<<"pon"<<endl;
    }
    else{
        cout<<"hon"<<endl;
    }
}