#include <bits/stdc++.h>
using namespace std;
int main() {
  string N;
  cin >> N;
  vector<string> wtf(N.size());
  for (int i = 0; i < 10; i++) {
    if (i == 3) {
      wtf.at(i) == "bon";
    } else if (i == 0 || i == 1 || i == 6 || i == 8) {
      wtf.at(i) == "pon";
    } else
      wtf.at(i) == "hon";
  }
  if (N.size() == 3) {
    string h = wtf.at(2);
    cout << h << endl;
  } else if (N.size() == 1) {
    string j = wtf.at(1);
    cout << j << endl;
  } else {
    string k = wtf.at(0);
    cout << k << endl;
  }
}
