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