#include <bits/stdc++.h>
using namespace std;
const int64_t LINF = 9187201950435737471;
const int64_t nLINF = -9187201950435737472;
const int INF = 2139062143;
const int nINF = -2139062144;
const uint64_t ULINF = numeric_limits<uint64_t>::max();
const int MAXN = 2000 + 15;
const int64_t MOD = 1e9 + 7;
const double EPS = 1e-9;
const int BLOCK = 500;
const double PI = acos(-1);
auto seed = 194113341;
mt19937 rnd(seed);
bool isEqual(double a, double b) { return abs(a - b) <= EPS; }
inline void IO() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
}
template <typename T>
istream& operator>>(istream& in, vector<T>& a) {
  for (auto& i : a) in >> i;
  return in;
}
template <typename T>
ostream& operator<<(ostream& out, const vector<T>& a) {
  for (auto& i : a) {
    out << i << " ";
  }
  return out;
}
template <typename T, typename D>
istream& operator>>(istream& in, pair<T, D>& a) {
  in >> a.first >> a.second;
  return in;
}
template <typename T, typename D>
ostream& operator<<(ostream& out, const pair<T, D>& a) {
  out << a.first << " " << a.second;
  return out;
}
void solve() {
  int x;
  cin >> x;
  x %= 10;
  if (x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
    cout << "hon";
  } else if (x == 0 || x == 1 || x == 6 || x == 8) {
    cout << "pon";
  } else {
    cout << "bon";
  }
}
signed main() {
  IO();
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
