#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long p = n % 10;
  if (p == 2 || p == 4 || p == 5 || p == 7 || p == 9) {
    cout << "hon";
  }
  if (p == 3) {
    cout << "bon";
  } else
    cout << "pon";
  return 0;
}
