#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int digit = 0;
  while (N != 0) {
    N = N / 10;
    ++digit;
  }
  if (digit == 2 || digit == 4 || digit == 5 || digit == 7 || digit == 9) {
    cout << "pon" << endl;
  } else if (digit == 0 || digit == 1 || digit == 6 || digit == 8) {
    cout << "hon" << endl;
  } else if (digit == 3) {
    cout << "hon" << endl;
  }
}
