#include <bits/stdc++.h>
using namespace std;
const long long MAX = 1e6 + 1;
const long long INF = 0x3f3f3f3f;
const double PI = acos(-1);
const double DEG = 180 / PI;
const long long MOD = 1e9 + 7;
long long mod(long long x, long long m) {
  if (x >= 0) return x % m;
  if (-x < m) return m - (-x);
  return mod(x % m, m);
}
long long gcd(long long a, long long b) {
  while (b) {
    a = mod(a, b);
    swap(a, b);
  }
  return a;
}
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
long long fexp(long long base, long long exp, long long m) {
  long long total = 1;
  while (exp > 0) {
    if (exp % 2 == 1) {
      total = mod(((mod(total, m)) * (mod(base, m))), m);
      exp--;
    }
    base = mod((mod(base, m) * mod(base, m)), m);
    exp /= 2;
  }
  return mod(total, m);
}
long long n;
int32_t main() {
  cin.tie(NULL);
  cout.tie(NULL);
  ios_base::sync_with_stdio(0);
  cin >> n;
  n = n % 10;
  if (n == 3)
    cout << "bon\n";
  else if (n == 2 or n == 4 or n == 5 or n == 7 or n == 9)
    cout << "pon\n";
  else
    cout << "hon\n";
  return 0;
}
