#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  long long k = n % 10;
  if (n % 10 == 3) {
    cout << "bon";
  } else if (k == 0 || k == 1 || k == 6 || k == 8) {
    cout << "hon";
  } else {
    cout << "pon";
  }
  return 0;
}
