#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ansn = 0;
  unordered_set<int> s[3];
  s[0] = {2, 4, 5, 7, 9};
  s[1] = {0, 1, 6, 8};
  s[2] = {3};
  for (int i = 0; i < (int)(3); i++) {
    auto it = s[i].find(n);
    if (it != s[i].end()) {
      ansn = i;
    }
  }
  if (ansn == 0) {
    cout << "hon";
  } else if (ansn == 1) {
    cout << "pon";
  } else if (ansn == 2) {
    cout << "bon";
  }
  cout << endl;
}
