#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n_int;
    n=std::to_string(n_int);
    int size = n.size();
    std::string out == "hon";
    if(n[size] == '0'){out = "pon";}
    else if(n[size] == '1'){out = "pon";}
    else if(n[size] == '6'){out = "pon";}
    else if(n[size] == '8'){out = "pon";}
    else if(n[size] == '3'){out = "bon";}
    cout << out << "\n";}

}
