#include <bits/stdc++.h>
using namespace std;
constexpr long long LINF = 1001002003004005006ll;
constexpr int INF = 1001001001;
constexpr int n_max = 2e5 + 10;
int powint(int x, int n) {
  int ret = 1;
  while (n > 0) {
    if (n & 1) ret *= x;
    x *= x;
    n >>= 1;
  }
  return ret;
};
long long powll(long long x, int n) {
  long long ret = 1;
  while (n > 0) {
    if (n & 1) ret *= x;
    x *= x;
    n >>= 1;
  }
  return ret;
};
template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
};
template <class T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
};
void print() { cout << "\n"; };
template <class T>
void print(vector<T> &vec) {
  for (auto &a : vec) {
    cout << a;
    if (&a != &vec.back()) cout << " ";
  }
  cout << "\n";
};
template <class T>
void print(vector<T> &vec, long long k) {
  long long n = vec.size();
  k = min(k, n);
  for (int i = (long long)0; i < (long long)k - 1; i++) cout << vec[i] << " ";
  cout << vec[k - 1] << "\n";
};
template <class T>
void print(vector<vector<T>> &df) {
  for (auto &vec : df) {
    print(vec);
  }
};
template <class T, class U>
void print(pair<T, U> &p) {
  cout << p.first << " " << p.second << "\n";
};
signed main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  char ch = s[2];
  if (ch == '3') {
    cout << "bon"
         << "\n";
  } else if (ch == '0' || ch == '1' || ch == '6' || ch == '8') {
    cout << "pon"
         << "\n";
  } else {
    cout << "hon"
         << "\n";
  }
  return 0;
};
