#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';
  if (s[s.size() - 1] == c) {
    cout << "bon" << endl;
    return 0;
  }
  for (auto e : a) {
    if (s[s.size() - 1] == e) {
      cout << "hon" << endl;
      break;
    }
  }
  cout << "pon" << endl;
  return 0;
}
