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