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