#include <bits/stdc++.h>
using namespace std;
using VI = vector<int>;
using VS = vector<string>;
using graph = vector<vector<int>>;
int main() {
  string s;
  cin >> s;
  int a = s.length();
  if (s[a - 1] == '3') {
    cout << "hon" << endl;
  } else if (s[a - 1] == '0' || s[a - 1] == '1' || s[a - 1] == '6' ||
             s[a - 1] == '8') {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
