#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<int> cnt(10, 0);
  for (char ch : s) {
    cnt[ch - '0']++;
  }
  if (cnt[2] || cnt[4] || cnt[5] || cnt[7] || cnt[9]) {
    cout << "hon\n";
  } else if (cnt[3]) {
    cout << "bon\n";
  } else {
    cout << "pon"
         << "\n";
  }
  return 0;
}
