#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using pi = pair<int, int>;
using vpi = vector<pi>;
using pl = pair<ll, ll>;
using vpl = vector<pl>;
template <class T>
bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  } else
    return false;
}
template <class T>
bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  } else
    return false;
}
template <class T>
void print(std::vector<T> a) {
  int sz = a.size();
  for (int i = 0; i < a.size(); i++) cout << a[i] << (i < sz - 1 ? ' ' : '\n');
}
void ioboost() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
}
int main(void) {
  ioboost();
  string s;
  cin >> s;
  char x = s[s.size() - 1];
  if (x == '2' || x == '4' || x == '4' || x == '7' || x == '9') {
    cout << "hon" << '\n';
  } else if (x == '3') {
    cout << "bon" << '\n';
  } else
    cout << "pon" << '\n';
}
