#include <bits/stdc++.h>
using namespace std;
using P = pair<long long, long long>;
using PQ = priority_queue<P, vector<P>, greater<P>>;
signed main() {
  string s;
  cin >> s;
  long long temp = s[s.size() - 1] - '0';
  switch (temp) {
    case 3:
      cout << "bon" << endl;
      break;
    case 0:
    case 1:
    case 6:
    case 7:
      cout << "pon" << endl;
      break;
    default:
      cout << "hon" << endl;
      break;
  }
  return 0;
}
