#include <iostream>

using namespace std;

int main(){
    int s;
    cin >> s;
    if (s > 10 && 100 > s) n = s % 10;
    else if (s > 100) n = s % 100;

    if(n == 2 || n == 4 || n == 5 || n == 7 ||  n == 9)
        cout << "hon" << endl;
    else if (n == 0 || n == 1 || n == 6 || n ==8)
        cout << "pon" << endl;
    else cout << "bon" << endl;
}