#include <bits/stdc++.h>
template <class T>
using V = std::vector<T>;
template <class T>
using VV = std::vector<std::vector<T>>;
template <class T>
using Q = std::queue<T>;
template <class T>
using PQ = std::priority_queue<T>;
template <class T, class U>
using P = std::pair<T, U>;
template <class T, class U>
using M = std::map<T, U>;
template <class T, class U>
using UM = std::unordered_map<T, U>;
template <class T, class U>
inline bool chmax(T &a, const U &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T, class U>
inline bool chmin(T &a, const U &b) {
  if (b < a) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline void vcin(T &v) {
  for (auto &&i : v) std::cin >> i;
}
template <class T>
inline void dumpv(const T &v, std::ostream &os = std::cout) {
  if (false) {
    os << "{";
    std::for_each((v).begin(), (v).end(),
                  [&os](typename T::value_type p) { os << p << ','; });
    os << "}\n";
  }
}
using std::cin;
using std::cout;
using std::next_permutation;
using std::string;
using LL = signed long long int;
const int INF = INT_MAX, MOD = 1e9 + 7;
const LL LLINF = LLONG_MAX;
const double PI = M_PI;
void Main() {
  int n;
  std::cin >> n;
  string ans;
  n %= 10;
  if (n == 3)
    ans = "bon";
  else if (n == 0)
    ans = "pon";
  else if (n == 2)
    ans = "pon";
  else if (n == 6)
    ans = "pon";
  else if (n == 8)
    ans = "pon";
  else
    ans = "hon";
  std::cout << ans << "\n";
}
int main() {
  std::cin.tie(nullptr);
  std::ios::sync_with_stdio(false);
  std::cout << std::fixed << std::setprecision(15);
  Main();
  return 0;
}
