#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  int n;
  cin >> n;
  string ans;
  if (n == 0) ans = "pon";
  if (n == 1) ans = "pon";
  if (n == 6) ans = "pon";
  if (n == 8) ans = "pon";
  if (n == 3) ans = "bon";
  if (n == 2) ans = "hon";
  if (n == 4) ans = "hon";
  if (n == 5) ans = "hon";
  if (n == 7) ans = "hon";
  if (n == 9) ans = "hon";
  cout << ans << endl;
}
