#include <iostream>
usindg namespace std;
int main()
{
    int N;
    cin >> N;
    switch(N % 10)
    {
        case 0:
            cout << "pon";
            break;
        case 1:
            cout << "pon";
            break;
        case 2:
            cout << "hon";
            break;
        case 3:
            cout << "bon";
            break;
        case 4:
            cout << "hon";
            break;
        case 5:
            cout << "hon";
            break;
        case 6:
            cout << "pon";
            break;
        case 7:
            cout << "hon";
            break;
        case 8:
            cout << "pon";
            break;
        case 9:
            cout << "hon";
            break;
        default:
            cout << "hon";
            break;
    }
    reaturn 0;
}