#include <bits/stdc++.h>
using namespace std;
#define rep0(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
using ll = long long;

int main(){
    int n;cin>>n;
    int a=n%10;
    if(a==3){
        cout <<"bon"<<endl;
    }
    else if(a==7){
        cout<<"hon"<<endl;
    }
    else if(a==2){
        cout<<"hon"<<endl;
    }
    else if(a==4){
        cout<<"hon"<<endl;
    }
    else if(a==5){
        cout<<"hon"<<endl;
    }
    else if(a==9){
        cout<<"hon"<<endl;
    }
    else{
        cout<<"pon"<<endl;
    }