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