#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d, e = 0, f, i, g[100000001], h = 100000000000, j, m, n,
                        x = 0, k, y = 1, y1, y2, y3, y4, y5, y6, y7, y8, y9,
                        y10, y11, y12, y13, y14, y15, y16, y17, y18, y19, y20,
                        y21, y22, y23, y24, y25, x1;
  string s, s2 = "Yes";
  cin >> a;
  if (a % 10 == 3) {
    cout << "bon";
    return 0;
  }
  if (a % 10 == 2 or 4 or 5 or 7 or 9) {
    cout << "hon";
    return 0;
  } else {
    cout << "pon";
    return 0;
  }
}
