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

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