#include <bits/stdc++.h>
using namespace std;
const long long maxn = 1e5 + 5;
long long T;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  vector<char> a = {'2', '4', '5', '7', '9'};
  vector<char> b = {'0', '1', '6', '8'};
  char c = '3';
  for (auto e : s) {
    if (e == c) {
      cout << "bon" << endl;
      return 0;
    }
  }
  for (long long i = 0; i < s.size(); i++) {
    for (auto e : b)
      if (s[i] == e) {
        cout << "pon" << endl;
        return 0;
      }
  }
  cout << "hon" << endl;
  return 0;
}
