#include<vector>
#define ll long long
#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

int main(){
    string n;
    int a,ans;
    cin >> n;
    (int)(n.length());
    a = n.length();
    if(n[(a-1)]=='0' || n[(a-1)]=='1' ||n[(a-1)]=='6' || n[(a-1)]=='8'){
        ans = 1;
    }else if(n[(a-1)]=='3'){
        ans = 2;
    }else if(n[(a-1)]=='2' || n[(a-1)]=='4' ||n[(a-1)]=='5' || n[(a-1)]=='7' || n[(a-1)]=='9'){
        ans = 3;
    }
    if(ans == 1){
        cout << "pon" << endl;
    }else if(ans == 2){
        cout << "bon" << endl;
    }else if(ans == 3){
        cout << "hon" << endl;
    }
    return 0;
}