#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  string s;
  cin >> s;
  if ((s[s.size() - 1] - '0') == 3)
    cout << "bon" << endl;
  else if ((s[s.size() - 1] - '0') == 2 && (s[s.size() - 1] - '0') == 4 &&
           (s[s.size() - 1] - '0') == 5 && (s[s.size() - 1] - '0') == 7 &&
           (s[s.size() - 1] - '0') == 9)
    cout << "hon" << endl;
  else
    cout << "pon" << endl;
  return 0;
}
