#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int64_t LINF = 1e18;
const int MOD = 1e9 + 7;
template <class T>
inline bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return true;
  }
  return false;
}
int main(void) {
  string n;
  cin >> n;
  char c = n.at(n.size() - 1);
  if (c == 3)
    cout << "bon";
  else if (c == 0 || c == 1 || c == 6 || c == 8)
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
