#include <bits/stdc++.h>
using ll = long long;
ll gcd(ll a, ll b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
ll lcm(ll a, ll b) {
  ll g = gcd(a, b);
  return a / g * b;
}
template <int id>
struct CompTupleBy {
  template <class T>
  bool operator()(const T& a, const T& b) const {
    return std::get<id>(a) < std::get<id>(b);
  }
};
using namespace std;
using Graph = vector<vector<int> >;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string n;
  cin >> n;
  string lastword;
  if (n.length() == 2) {
    lastword = n.substr(1, 2);
  }
  if (n.length() == 3) {
    lastword = n.substr(2, 3);
  }
  cout << lastword << endl;
  if (lastword == "2" || lastword == "4" || lastword == "5" ||
      lastword == "7" || lastword == "9") {
    cout << "hon" << endl;
  } else if (lastword == "3") {
    cout << "bon" << endl;
  } else {
    cout << "pon" << endl;
  }
}
