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