#include <bits/stdc++.h>
using namespace std;
;
int main() {
  long long int n;
  cin >> n;
  int k = n % 10;
  if (k == 2 || k == 4 || k == 5 || k == 7 || k == 9) {
    cout << "hon" << endl;
  } else if (k == 3) {
    cout << "bon" << endl;
  } else
    cout << "pon" << endl;
  return 0;
}
