#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  n %= 10;
  auto pronounce = [](int n) {
    if (n == 3) {
      cout << "bon";
    } else if (n <= 4 || (n > 4 && n % 2)) {
      cout << "hon";
    } else {
      cout << "pon";
    }
  };
  pronounce(n);
}
