#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  int i;
  cin >> s;
  i = s.size() - 1;
  if (s[i] == 2 || s[i] == 4 || s[i] == 5 || s[i] == 7 || s[i] == 9)
    cout << "hon" << endl;
  else if (s[i] == 0 || s[i] == 1 || s[i] == 6 || s[i] == 8)
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
  return 0;
}
