#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  string s = to_string(n);
  int sz = s.size() - 1;
  if (s[sz] == '2' || s[sz] == '4' || s[sz] == 5 || s[sz] == '7' ||
      s[sz] == '9')
    cout << "hon"
         << "\n";
  else if (s[sz] == '0' || s[sz] == '1' || s[sz] == '6' || s[sz] == '8')
    cout << "pon"
         << "\n";
  else if (s[sz] == '3')
    cout << "bon"
         << "\n";
  return 0;
}
