#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  if (s.length() == 1) return cout << "hon" << endl, 0;
  if (s[1] == '2' || s[1] == '4' || s[1] == '5' || s[1] == '7' || s[1] == '9')
    cout << "hon" << endl;
  else
    cout << "pon" << endl;
  return 0;
}
