#include <bits/stdc++.h>
using namespace std;
using std::cin;
using std::cout;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cout.precision(6);
  string n;
  cin >> n;
  int l = n.back();
  if (l == 0 || l == 1 || l == 6 || l == 8) {
    cout << "pon";
  } else if (l == 3) {
    cout << "bon";
  } else {
    cout << "hon";
  }
  return 0;
}
