#include <bits/stdc++.h>
using namespace ::std;
template <class T>
istream& operator>>(istream& I, vector<T>& v) {
  for (T& e : v) I >> e;
  return I;
}
void _main() {
  long long n;
  cin >> n;
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
    cout << "hon";
  else if (n == 0 || n == 1 || n == 6 || n == 8)
    cout << "pon";
  else
    cout << "bon";
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long _t = 1;
  while (_t--) _main();
  return 0;
}
