#include <bits/stdc++.h>
using namespace std;
const long long LINF = 1e18L + 1;
const int INF = 1e9 + 1;
int main() {
  int n;
  cin >> n;
  while (n > 10) {
    n /= 10;
  }
  string out;
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) out = "hon";
  if (n == 0 || n == 1 || n == 6 || n == 8) out = "pon";
  if (n == 3) out = "bon";
  cout << out << endl;
  return 0;
}
