#include <bits/stdc++.h>
using namespace std;
inline long long ri() {
  long long t = 0;
  char c;
  while ((c = getchar() - 48) >= 0 && c < 10) t = t * 10 + c;
  return t;
}
int main() {
  int n = ri();
  int ones = n % 10;
  if (ones == 2 || ones == 4 || ones == 5 || ones == 7 || ones == 9) {
    cout << "hon"
         << "\n";
  } else if (ones == 3) {
    cout << "bon"
         << "\n";
  } else {
    cout << "pon"
         << "\n";
  }
}
