#include <bits/stdc++.h>
using namespace std;
int n, m, ans;
int main() {
  string s;
  cin >> s;
  if (s.length() == 3) cout << "bon" << endl;
  if (s.length() == 0) cout << "pon" << endl;
  if (s.length() == 1) cout << "pon" << endl;
  if (s.length() == 6) cout << "pon" << endl;
  if (s.length() == 8) cout << "pon" << endl;
  if (s.length() == 2) cout << "hon" << endl;
  if (s.length() == 4) cout << "hon" << endl;
  if (s.length() == 5) cout << "hon" << endl;
  if (s.length() == 7) cout << "hon" << endl;
  if (s.length() == 9) cout << "hon" << endl;
  return 0;
}
