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