#include <bits/stdc++.h>
using namespace std;
int main() {
  int count;
  cin >> count;
  count = count % 10;
  int hon[] = {2, 4, 5, 7, 9};
  int *h;
  h = find(hon, hon + 5, count);
  if (h != hon + 5) {
    cout << "hon";
  } else {
    int pon[] = {0, 1, 6, 8};
    int *p;
    p = find(pon, pon + 4, count);
    if (p != pon + 4) {
      cout << "pon";
    } else {
      cout << "bon";
    }
  }
  return 0;
}
