#include <iostream>

using namespace std;

int main(void)
{
    int N;
    cin >> N;
    switch (N % 10)
    {
    case (2):
    case (4):
    case (5):
    case (7):
    case (9):
        cout << "hon\n";
        break;
    case (1):
    case (6):
    case (8):
    case (0):
        cout << "pon\n";
        break;
    default:
        cout << "bon";
    }
}
