#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
const double EPS = 1e-10;
const double PI = acos(-1.0);
int main() {
  string n;
  cin >> n;
  int s = n.length();
  cout << n.at(s - 1) << endl;
  if (n.at(s - 1) == 3) {
    cout << "bon";
  } else if (n.at(s - 1) == 0 || n.at(s - 1) == 1 || n.at(s - 1) == 6 ||
             n.at(s - 1) == 8) {
    cout << "pon";
  } else {
    cout << "hon";
  }
  cout << endl;
  return 0;
}
