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