#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vl = vector<long long>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<long long>>;
using vvb = vector<vector<bool>>;
template <typename T>
istream &operator>>(istream &is, vector<T> &vec) {
  for (auto &v : vec) is >> v;
  return is;
}
template <typename T1, typename T2>
istream &operator>>(istream &is, pair<T1, T2> &pair) {
  cin >> pair.first >> pair.second;
  return is;
}
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &vec) {
  os << "[ ";
  for (register int i = (0), i_end = (vec.size()); i < i_end; i++)
    i == 0 ? os << vec[i] : os << ", " << vec[i];
  os << " ]";
  return os;
}
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
void init() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(16);
}
int main() {
  init();
  ll N;
  cin >> N;
  N %= 10;
  if (N == 3) {
    cout << ("bon") << '\n';
    ;
  } else if (N <= 1 || N == 6 || N == 8) {
    cout << ("pon") << '\n';
    ;
  } else {
    cout << ('hon') << '\n';
    ;
  }
}
