#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, k, a, b, c, n, t, m, p, q, d, e, f, l, nl, np, x, y, x1,
      y2, y1, x2;
  vector<long long int> s;
  vector<long long int> vv, ss, v;
  map<string, long long int> ma, sa;
  string st, et, ft, pt, ct;
  deque<char> de;
  ios_base::sync_with_stdio(false);
  cin >> st;
  if (st[0] == '2' || st[0] == '4' || st[0] == '5' || st[0] == '7' ||
      st[0] == '9')
    cout << "hon" << endl;
  else if (st[0] == '0' || st[0] == '1' || st[0] == '6' || st[0] == '8')
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
}
