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