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