#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  int MOD = 10;
  if (n % MOD == 3) {
    cout << "bon";
  } else {
    if ((n % 2 == 0 && n < 5) || (n % 2 == 1 && n > 4)) {
      cout << "hon";
    } else {
      cout << "pon";
    }
  }
  cout << endl;
  return 0;
}
