#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  int a = n.size();
  if ((n.at(a) == '0') || (n.at(a) == '1') || (n.at(a) == '6') ||
      (n.at(a) == '8'))
    cout << "pon" << endl;
  if (n.at(a) == '3')
    cout << "bon" << endl;
  else
    cout << "hon" << endl;
}
