#include <bits/stdc++.h>
using namespace std;
int imax = 2147483647;
long long int llimax = 9223372036854775807;
void PV(vector<int> pvv) {
  for (int i = 0; i < (int)(pvv.size()); i++) cout << pvv[i] << " ";
  cout << endl;
}
void PVL(vector<long long int> pvv) {
  for (int i = 0; i < (int)(pvv.size()); i++) cout << pvv[i] << " ";
  cout << endl;
}
int main() {
  int n;
  cin >> n;
  if (n % 10 == 0) cout << "pon" << endl;
  if (n % 10 == 1) cout << "pon" << endl;
  if (n % 10 == 6) cout << "pon" << endl;
  if (n % 10 == 8) cout << "pon" << endl;
  if (n % 10 == 2) cout << "hon" << endl;
  if (n % 10 == 4) cout << "hon" << endl;
  if (n % 10 == 5) cout << "hon" << endl;
  if (n % 10 == 8) cout << "hon" << endl;
  if (n % 10 == 9) cout << "hon" << endl;
  if (n % 10 == 3) cout << "bon" << endl;
  return 0;
}
