#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();
  if (n[m] == 2 || n[m] == 4 || n[m] == 5 || n[m] == 7 || n[m] == 9) {
    cout << "hon" << endl;
    return 0;
  }
  if (n[m] == 0 || n[m] == 1 || n[m] == 6 || n[m] == 8) {
    cout << "pon" << endl;
    return 0;
  }
  if (n[m] == 3) {
    cout << "bon" << endl;
    return 0;
  }
}
