#include <bits/stdc++.h>
using namespace std;
template <typename T>
T BigMod(T b, T p, T m) {
  if (p == 0) return 1;
  if (p % 2 == 0) {
    T s = BigMod(b, p / 2, m);
    return ((s % m) * (s % m)) % m;
  }
  return ((b % m) * (BigMod(b, p - 1, m) % m)) % m;
}
template <typename T>
T POW(T B, T P) {
  if (P == 0) return 1;
  if (P & 1)
    return B * POW(B, P - 1);
  else
    return POW(B, P / 2) * POW(B, P / 2);
}
template <typename T>
T gcd(T a, T b) {
  if (a < 0) return gcd(-a, b);
  if (b < 0) return gcd(a, -b);
  return (b == 0) ? a : gcd(b, a % b);
}
template <typename T>
T lcm(T a, T b) {
  if (a < 0) return lcm(-a, b);
  if (b < 0) return lcm(a, -b);
  return a * (b / gcd(a, b));
}
int pallindrom(string s) {
  string second;
  second = s;
  reverse(s.begin(), s.end());
  if (second == s) {
    return 1;
  } else
    return -1;
}
int toInt(string s) {
  int sm;
  stringstream second(s);
  second >> sm;
  return sm;
}
long long toLlint(string s) {
  long long sm;
  stringstream second(s);
  second >> sm;
  return sm;
}
bool isVowel(char ch) {
  ch = toupper(ch);
  if (ch == 'A' || ch == 'U' || ch == 'I' || ch == 'O' || ch == 'E')
    return true;
  return false;
}
template <class T>
string NTS(T Number) {
  stringstream second;
  second << Number;
  return second.str();
}
bool isprime(int w) {
  if (w == 0) return false;
  if (w == 1) return false;
  int sqrtw = int(sqrt((double)w));
  for (int q = 2; q <= sqrtw; q++) {
    if (w % q == 0) return false;
  }
  return true;
}
long long a[200000];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  int n;
  cin >> n;
  string xx = to_string(n);
  int hon = 0, pon = 0, bon = 0;
  for (int i = 0; i < xx.size(); i++) {
    if (xx[i] == '2' || xx[i] == '4' || xx[i] == '5' || xx[i] == '7' ||
        xx[i] == '9')
      hon++;
    if (xx[i] == '0' || xx[i] == '1' || xx[i] == '6' || xx[i] == '8') pon++;
    if (xx[i] == '3') bon++;
  }
  if (hon == xx.size())
    cout << "hon"
         << "\n";
  if (pon == xx.size())
    cout << "pon"
         << "\n";
  if (bon == xx.size())
    cout << "bon"
         << "\n";
}
