#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  vector<int> a{2, 4, 5, 7, 9};
  int c = 3;
  if (find(a.begin(), a.end(), t) != a.end())
    cout << "hon";
  else if (c == t)
    cout << "bon";
  else
    cout << "pon";
}
