#include <bits/stdc++.h>
const double E = 1e-8;
const double PI = acos(-1);
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int one = n % 10;
  if (one == 2 || one == 4 || one == 5 || one == 7 || one == 9)
    cout << "hon\n";
  else if (one == 0 || one == 1 | one == 6 || one == 8)
    cout << "pon\n";
  else if (one == 3)
    cout << "hon\n";
  return 0;
}
