#include <bits/stdc++.h>

using namespace std;

using pii = pair<int, int>;
using pll = pair<long long, long long>;

int main() {
    int n;
    cin >> n;
    int t = n % 10;
    if (t == 2 || t == 4 || t == 5 || t == 7 || t == 9) {
        cout << "hon" << endl;
    }
    else if (t == 0 || t == 1 || t == 6 || t == 8) {
        cout << "pon" << endl;
    }
    else {
        cout << "bon" << endl;
    }
}