#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  vector<int> hon{2, 4, 5, 7, 9};
  vector<int> pon{0, 1, 6, 8};
  vector<int> bon{3};
  cin >> a;
  a = a % 10;
  unsigned int i;
  string answer = "error";
  for (i = 0; i < hon.size(); i++) {
    if (a == hon.at(i)) {
      answer = "hon";
    }
  }
  for (i = 0; i < pon.size(); i++) {
    if (a == pon.at(i)) {
      answer = "pon";
    }
  }
  for (i = 0; i < bon.size(); i++) {
    if (a == bon.at(i)) {
      answer = "bon";
    }
  }
  cout << answer << endl;
  return 0;
}
