#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  vector<string> s(10);
  s.push_back("pon");
  s.push_back("pon");
  s.push_back("hon");
  s.push_back("bon");
  s.push_back("hon");
  s.push_back("hon");
  s.push_back("pon");
  s.push_back("hon");
  s.push_back("pon");
  s.push_back("hon");
  cout << s[n % 10] << endl;
  return 0;
}
