#include <bits/stdc++.h>
using namespace std;
int main() {
  string N;
  cin >> N;
  char S = N.at(N.size() - 1);
  if (S == '2' || S == '5' || S == '4' || S == '7' || S == '9') {
    cout << "hon" << endl;
  }
  if (S == '3') {
    cout << "bon" << endl;
  } else {
    cout << "pon" << endl;
  }
}
