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