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

typedef long long ll;
ll mod = 1000000007;

ll power(ll x, ll y)
{
    ll res = 1;
    x = x%mod;
    while (y)
    {
        if (y&1) res = ((res%mod)*(x%mod))%mod;

        y>>=1;
        x = ((x%mod)*(x%mod))%mod;
    }
    return res;
}

int main(){

    ios::sync_with_stdio(false);
    cin.tie(0);

    int n,
    cin >> n;
    n %= 10;
    if(n==3) cout << "bon\n";
    else if(n==0 || n==1 || n==6 || n==8) cout << "pon\n";
    else cout << "hon\n";

    return 0;
}
