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