#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (N); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
int N;
    std:: cin >> N;
    vector<string> s(10);
    s[0] = "pon";
    s[1] = "pon";
    s[2] = "hon";
    s[3] = "bon";
    s[4] = "hon";
    s[5] = "hon";
    s[6] = "pon";
    s[7] = "hon";
    s[8] = "pon";
    s[9] = "hon"; 
    count << s [N%10] << endl;
    return 0;
}