#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define ss second
#define ff first
#define pb push_back
int main(){
    ios_base::sync_with_stdio(0);
    string x;
    cin>>x;
    if(x[x.size-1]=='3'){
        cout<<"bon";
        return 0;
    }
    else if(x[x.size()-1]=='0'||x[x.size()-1]=='1'||x[x.size()-1]=='6'||x[x.size()-1]=='8'){
        cout<<"pon";
    }
    else{
        cout<<"hon";
    }
}

