#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n;
  m = n % 10;
  int k[5] = {2, 4, 5, 7, 9};
  string s;
  for (int i = 0; i < 5; i++) {
    if (k[i] == m) {
      s = "hon";
      break;
    }
  }
  if (m == 3) {
    s = "bon";
  } else {
    s = "pon";
  }
  cout << s << endl;
}
