#include <bits/stdc++.h>
using namespace std;
long long be(long long a, long long b, long long mod) {
  if (b == 0) return 1;
  if (b % 2 == 1)
    return (a * be(a, b - 1, mod)) % mod;
  else
    return (be(a, b / 2, mod) * be(a, b / 2, mod)) % mod;
}
const long long mod = 1e9 + 7;
const long long siz = (1e5 + 10);
const long long logi = 21;
const double epsilon = 1e-6;
bool cmp(const long long &a, const long long &b) { return (abs(a - b) > 1); }
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t;
  t = 1;
  while (t--) {
    string s;
    cin >> s;
    set<long long> s1;
    set<long long> s2;
    set<long long> s3;
    s1 = {2, 4, 5, 7, 9};
    s2 = {0, 1, 6, 8};
    s3 = {3};
    long long d = s[0] - '0';
    if (s1.find(d) != s1.end()) {
      cout << "hon";
    }
    if (s2.find(d) != s2.end()) {
      cout << "pon";
    }
    if (d == 3) {
      cout << "bon";
    }
  }
}
