#include <bits/stdc++.h>
using namespace std;
bool debug_disabled = true;
void solve() {
  int n;
  cin >> n;
  int d = n % 10;
  if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9)
    cout << "hon" << endl;
  else if (d == 0 || d == 1 || d == 6 || d == 8)
    cout << "pon" << endl;
  else
    cout << "mon" << endl;
}
int main() {
  cout.setf(ios::fixed, ios::floatfield);
  cout.setf(ios::showpoint);
  cout.precision(12);
  cin.tie(0);
  cout.tie(0);
  ios::sync_with_stdio(false);
  int T = 1;
  for (int i = 1; i <= T; ++i) {
    solve();
  }
  return 0;
}
