#include <iostream>
#include <vector>
#include <math.h>
#include <iomanip>//cout << fixed << setprecision() <<
#include <set>
#include <map>
using ll = long long;
using namespace std;

int main(void){
    int n,n2;
    cin>>n;
    n2=n%10;
    if(n2==2 || n2==4||n2==5||n2==7||n2==9){
        cout<<"hon";
    }else if(n2==0||n2==1||n2==6||n2==8){
        cout<<"pon";
    }else{
        cout<<"bon"
    }
}
