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