#include <bits/stdc++.h>
using namespace std;
string inttostr(long long int n) {
  std::stringstream ss;
  ss << n;
  string out = ss.str();
  return out;
}
long long int stringtoint(string s) {
  istringstream iss(s);
  long long int n;
  iss >> n;
  return n;
}
int main() {
  int n;
  cin >> n;
  string s = inttostr((long long int)n);
  if (s[0] == '1' or s[0] == '6' or s[0] == '8' or s[0] == '0')
    cout << "pon" << '\n';
  else if (s[0] == '3')
    cout << 'bon' << '\n';
  else
    cout << "hon" << '\n';
}
