#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
using V = vector<T>;
template <class T, class U>
using P = pair<T, U>;
template <class T>
using PQ = priority_queue<T>;
template <class T>
using PQR = priority_queue<T, vector<T>, greater<T> >;
void solve(long long N) {
  int a = N % 10;
  if (a == 2 || a == 4 || a == 7 || a == 9) {
    cout << "hon" << endl;
  } else if (a == 0 || a == 1 || a == 6 || a == 8) {
    cout << "pon" << endl;
  } else {
    cout << "bon" << endl;
  }
}
int main() {
  long long N;
  scanf("%lld", &N);
  solve(N);
  return 0;
}
