#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  if (strchr("24579", n.back()))
    cout << "hon\n";
  else if (strchr("2168", n.back()))
    cout << "pon\n";
  else
    cout << "bon";
  return 0;
}
