#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<long long> v;
  long long a, b, c = 0, d = 0, e = 0, f = 0, g = 0, i, j, k = 1, l = 0, r = 1,
                  n, m, z, h, p[10001];
  string s, t, x, y;
  double q, u, w;
  cin >> a;
  b = a % 10;
  if (b == 2 || b == 4 || b == 5 || b == 7 || b == 9) {
    cout << "hop";
    exit(0);
  }
  if (b == 3) {
    cout << "bon";
    exit(0);
  }
  cout << "pon";
}
