#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int digit = n % 10;
  if (digit == 2 || digit == 4 || digit == 5 || digit == 7 || digit == 9) {
    cout << "hon";
  } else if (digit == 0 || digit == 1 || digit == 6 || digit == 8) {
    cout << "pon";
  } else {
    cout << "jon";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
