b#include <bits/stdc++.h>
#define IOS ios_base::sync_with_stdio(0); cin.tie(0);
using namespace std;
typedef long long ll;

#define mp make_pair
#define fi first
#define se second
#define pb push_back
#define PI pair<int,int>

const double pi = acos(-1.0);
const int inf = 0x3f3f3f3f;
const ll INF = 0x3f3f3f3f3f3f3f3fll;
const ll mod = (ll)(1e9 + 7);
const int N = 1000010;


int main() {    
    string str;
    while (cin >> str) {
        int n = str.length();
        if (str[n-1] == '3') cout << "bon\n";
        else if (str[n-1] == '0' || str[n-1]=='1' || str[n-1]=='6' || str[n-1]=='8') {
            cout << "pon\n";
        } else cout << "hon\n";
    }
    return 0;
}
    
