#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << endl;
  err(++it, args...);
}
int main() {
  string S;
  cin >> S;
  if (S[S.size() - 1] == '3') {
    cout << "bon" << endl;
  } else if (S[S.size() - 1] == '0' or S[S.size() - 1] == '1' or
             S[S.size() - 1] == '6' or S[S.size() - 1] == '8') {
    cout << "pon" << endl;
  } else
    cout << "hon" << endl;
  return S.size() - 1;
}
