#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10, M = N * 2, S = 1e7 + 10;
int t;
int ne[15];
string ans[4], first;
int main() {
  ans[1] = "hon", ans[2] = "pon", ans[3] = "bon";
  ne[2] = ne[4] = ne[5] = ne[7] = ne[9] = 1;
  ne[0] = ne[1] = ne[6] = ne[8] = 2;
  ne[3] = 3;
  int res;
  cin >> first;
  for (auto c : first) {
    if (ne[c - '0'] > res) res = ne[c - '0'];
  }
  cout << ans[res] << endl;
}
