#include <bits/stdc++.h>
using namespace std;
const int MOD{int(1e9 + 7)};
const int inf{2100000000};
void printVec(vector<int>& vec) {
  cout << "";
  for (auto it = vec.begin(); it != vec.end(); it++) cout << *it << " ";
  cout << endl;
}
int sumVec(vector<int> v) {
  int sum = 0;
  for (size_t i = 0; i < v.size(); i++) sum += v[i];
  return sum;
}
int main(void) {
  int N;
  cin >> N;
  if (N == 3)
    cout << "bon" << endl;
  else if (N == 0 || N == 1 || N == 6 || N == 8)
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
