#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<int> vec1 = {2, 4, 5, 7, 9};
  vector<int> vec2 = {0, 1, 6, 8};
  if (find(vec1.begin(), vec1.end(), n % 10) != vec1.end()) {
    cout << "hon" << endl;
  } else if (find(vec2.begin(), vec2.end(), n % 10) != vec1.end())
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
}
