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