#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, t;
  cin >> N;
  string a = to_string(N);
  if (a.at(a.size() - 1) == 3) {
    cout << "bon" << endl;
  } else if (a.at(a.size() - 1) == 0 || a.at(a.size() - 1) == 1 ||
             a.at(a.size() - 1) == 6 || a.at(a.size() - 1) == 8) {
    cout << "pon" << endl;
  } else
    cout << "hon" << endl;
}
