#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  switch (s[s.length() - 1]) {
    case '2':
      cout << "hon" << endl;
    case '4':
      cout << "hon" << endl;
    case '5':
      cout << "hon" << endl;
    case '7':
      cout << "hon" << endl;
    case '9':
      cout << "hon" << endl;
    case '0':
      cout << "pon" << endl;
    case '1':
      cout << "pon" << endl;
    case '6':
      cout << "pon" << endl;
    case '8':
      cout << "pon" << endl;
    case '3':
      cout << "bon" << endl;
  }
}
