#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, n;
  cin >> n;
  k = n % 100;
  if (k == 3) cout << "bon";
  if (k == 0 || k == 1 || k == 6 || k == 8)
    cout << "pon";
  else
    cout << "hon";
}
