#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
#include<utility>

#define rep(i, n) for (int i = 0; i < n; i++)
#define all(x) x.begin(), x.end() 
typedef long long ll;
using namespace std;

int main () {
    int n;
    cin >> n;
    string ans;

    if(n%10 == 3) {
        ans = "bon";
    } else if(n%10 == 0 || n%10 == 1 || n%10 == 6 || n%10 == 8) {
        ans = "pon";
    } else {
        ans = "hon";
    }

    cout << ans << end;
}