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