#include <bits/stdc++.h>
using namespace std;
vector<long long int> v;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n = 0;
  cin >> n;
  if (n == 0) {
    cout << "pon"
         << "\n";
  } else {
    for (int i = 0; i < 999; i++) {
      if (n == 4 || n == 2 || n % 5 == 0 || n % 7 == 0 || n % 9 == 0) {
        if (i % n == 0) {
          cout << "hon"
               << "\n";
          break;
        }
      }
      if (n % 6 == 0 || n % 8 == 0) {
        if (i % n == 0) {
          cout << "pon"
               << "\n";
          break;
        }
      } else if (n % 3 == 0) {
        if (i % n == 0) {
          cout << "bon"
               << "\n";
        }
        break;
      }
    }
  }
  return 0;
}
