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