#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 LCM(long long a, long long b) {
  long long gcd = GCD(a, b);
  return (a * b) / gcd;
}
int main() {
  long long i, j, k, n, m, t, x, y, s = 0, c = 0, l;
  string a;
  cin >> a;
  char z = a[a.size() - 1];
  if (z == '2' || z == '4' || z == '5' || z == '7' || z == '9')
    cout << "hon\n";
  else if (z == '0' || z == '1' || z == '6' || z == '8')
    cout << "pon\n";
  else {
    cout << "bon\n";
  }
}
