#include <bits/stdc++.h>
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
using namespace std;
using ll = long long;
const ll MOD = 1000000007;
const ll INF = MOD * MOD;
const int inf = (1 << 29);
int main() {
  string n;
  cin >> n;
  if (n[n.size() - 1] == '3')
    cout << "bon" << endl;
  else if (n[n.size() - 1] == ('0' || '1' || '6' || '8'))
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
