#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long extended_gcd(long long a, long long b, long long& x, long long& y) {
  if (b == 0) {
    x = 1;
    y = 0;
    return a;
  }
  long long x1, y1;
  long long d = extended_gcd(b, a % b, x1, y1);
  x = y1;
  y = x1 - y1 * (a / b);
  return d;
}
vector<int> sieveoferatosthenes(int n) {
  vector<bool> prime(n + 1, true);
  for (int i = 2; i <= sqrt(n); i++) {
    if (prime[i]) {
      for (int j = i * i; j <= n; j += i) {
        prime[j] = false;
      }
    }
  }
  vector<int> all_primes;
  for (int i = 2; i <= n; i++) {
    if (prime[i]) all_primes.push_back(i);
  }
  return all_primes;
}
long long bin_exp(long long a, long long b, long long mod) {
  long long ans = 1;
  while (b) {
    if (b % 2) {
      b--;
      ans = (ans % mod * a % mod) % mod;
    }
    b /= 2;
    a = (a % mod * a % mod) % mod;
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int rem = n % 10;
  if (rem == 2 or rem == 4 or rem == 5 or rem == 7 or rem == 9) {
    cout << "hon"
         << "\n";
  }
  if (rem == 0 or rem == 1 or rem == 6 or rem == 8) {
    cout << "pon"
         << "\n";
  } else
    cout << "bon"
         << "\n";
  return 0;
}
