#include <bits/stdc++.h>
using namespace std;

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