#include <iostream>
#include <string>

using namespace std;

int main()
{
    int N;

    cin >> N;

    string ANS = "";

    string b = strmid(N, 0, 1);

    if (b == "2" || b == "4" || b == "5" || b == "7" || b == "9")
    {
        ANS = "hon";
    }
    else if (b == "0" || b == "1" || b == "6" || b == "8")
    {
        ANS = "pon";
    }
    else
    {
        ANS = "bon";
    }

    cout << ANS << endl;
}