#include <bits/stdc++.h>
using namespace std;
std::mt19937 mrand(random_device{}());
int rnd(int x) { return mrand() % x; }
const long long mod = 1e7;
long long ksm(long long a, long long b) {
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long _;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n;
  cin >> n;
  long long cur = n % 10;
  if (cur == 2 || cur == 4 || cur == 5 || cur == 7 || cur == 9)
    cout << "hon" << endl;
  else if (cur == 0 || cur == 1 || cur == 6 || cur == 8)
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
  return 0;
}
