#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using p = pair<int, int>;
int main() {
  string n;
  cin >> n;
  int m = n.length() - 1;
  if (n[m] == 50 || n[m] == 52 || n[m] == 53 || n[m] == 54 || n[m] == 55) {
    cout << "hon" << endl;
    return 0;
  }
  if (n[m] - '0' == 0 || n[m] - '0' == 1 || n[m] - '0' == 6 ||
      n[m] - '0' == 8) {
    cout << "pon" << endl;
    return 0;
  }
  if (n[m] == '3') {
    cout << "bon" << endl;
    return 0;
  }
}
