#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const long double eps = 1.0e-10;
long long GCD(long long a, long long b) {
  if (b == 0)
    return a;
  else
    return GCD(b, a % b);
}
long long LCM(long long a, long long b) { return a * b / GCD(a, b); }
unsigned GetDigit(unsigned num) { return std::to_string(num).length(); }
int tow(int n) {
  if (n == 0) return 1;
  int x = tow(n / 2);
  x *= x;
  if (n % 2 == 1) x *= 2;
  return x;
}
int keta(int n) {
  int sum = 0;
  while (n != 0) {
    sum += n % 10;
    n /= 10;
  }
  return sum;
}
long double mysqrtl(long double x) {
  long double a = sqrtl((double)x);
  do {
    a = (a + x / a) / 2.0L;
  } while (fabsl(x - a * a) > eps);
  return a;
}
ll gcd(ll a, ll b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
ll lcm(ll a, ll b) {
  ll g = gcd(a, b);
  return a / g * b;
}
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long int ans = 0, n = 0, m = 0, count = 0, sum = 0, old = 0;
  long long int a, b, c, k;
  bool check = false;
  string ss, sss;
  vector<long long int> array;
  vector<bool> bo;
  cin >> n;
  vector<long long int> counter, rust;
  if (n < 10)
    a = n;
  else if (n < 100)
    a = n % 10;
  else
    a = n % 100;
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9)
    cout << "hon" << endl;
  else if (a == 0 || a == 1 || a == 6 || a == 8)
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
  return 0;
}
