#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
const long long MOD = 1e9 + 7;
const double EPS = (1e-8);
const int OO = (int)1e9 + 7;
const long long OOO = (long long)1e15 + 7;
double const PI = 3.1415926535897932384626433832795;
const int mxn = 200009;
char c1, c2, c3, c4;
string s, s1, s2, s3;
long long n, m, k, t, q, a, b, c, d, e, x, y, z;
long long sol = 0;
int main() {
  fast();
  cin >> s;
  n = (int)s.size();
  x = s[n - 1] - '0';
  if (x == 2 || x == 4 || x == 5 || x == 7 || x == 0)
    cout << "hon";
  else if (x == 3)
    cout << "bon";
  else
    cout << "pon";
  cout << endl << endl;
  return 0;
}
