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