#include <bits/stdc++.h>
using namespace std;
const long long no_of_chars = 256;
const long long mod = 1e9 + 7;
long long i, j;
long long fastpow(long long x, long long y) {
  long long res = 1;
  x %= mod;
  while (y) {
    if (y & 1) res = (res * x) % mod;
    x = (x * x) % mod;
    y = (y >> 1);
  }
  return res;
}
long long prod(long long x, long long y) {
  long long res = 0;
  x %= mod;
  while (y) {
    if (y & 1) res = (res + x) % mod;
    x = (x * 2) % mod;
    y = y >> 1;
  }
  return res;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    long long n;
    cin >> n;
    long long a = n % 10;
    if (a == 2 || a == 5 || a == 7 || a == 9 || a == 4)
      cout << "hon" << endl;
    else if (a == 0 || a == 6 || a == 1 || a == 8)
      cout << "pon" << endl;
    else if (a == 3)
      cout << "bon" << endl;
  }
  return 0;
}
