#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int hon[5] = {2, 4, 5, 7, 9};
  int pon[4] = {0, 1, 6, 8};
  for (int i = 0; i < 5; i++) {
    if (s[0] == hon[i] + '0') {
      cout << "hon" << endl;
      return 0;
    }
  }
  for (int i = 0; i < 4; i++) {
    if (s[0] == pon[i] + '0') {
      cout << "pon" << endl;
      return 0;
    }
  }
  cout << "bon" << endl;
}
