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