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