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