#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  int s = 0, r = 0, t = 0;
  int l = n.size();
  for (int i = 0; i < l; i++) {
    if (n[i] == '3') {
      s++;
    } else if (n[i] == '0' || n[i] == '1' || n[i] == '6' || n[i] == '8') {
      t++;
    } else if (n[i] == '2' || n[i] == '4' || n[i] == '5' || n[i] == '7' ||
               n[i] == '9') {
      r++;
    }
  }
  if (s > 0) {
    cout << "bon" << endl;
  } else if (t > 0) {
    cout << "pon" << endl;
  } else if (r > 0) {
    cout << "hon" << endl;
  }
  return 0;
}
