#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<string> X;
  X[0] = "pon";
  X[1] = "pon";
  X[2] = "hon";
  X[3] = "bon";
  X[4] = "hon";
  X[5] = "hon";
  X[6] = "pon";
  X[7] = "hon";
  X[8] = "pon";
  X[9] = "hon";
  int Y;
  cin >> Y;
  int S = Y % 10;
  cout << X[S] << endl;
}
