#include<bits/stdc++.h>
using namespace std;

#define sz(x) (int)x.size()

int main() {

    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);

    string s; cin >> s;

    string x = s[sz(s)-1];

    if (sz(x) == 1) {
        if (x[0] == '3') {
            cout << "bon\n";
        } else if (x[0] == '0' || x[0] == '1' || x[0] == '6' || x[0] == '8') {
            cout << "pon\n";
        } else cout << "hon\n";
    }
    assert(false);
}
