#include <bits/stdc++.h>
using namespace std;
long long ans[400000], a[400000];
int main() {
  ios_base::sync_with_stdio(false);
  long long i, j, n, m1, m2, k, t, a1, a2, l, th, h, r, mx, pr = .000000001, x,
                                                            y;
  string s;
  cin >> s;
  n = s[s.size() - 1];
  if (n == 3)
    cout << "bon" << endl;
  else if (n == 0 || n == 1 || n == 6 || n == 8)
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
