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