#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using pll = pair<lli, lli>;
using tlll = tuple<lli, lli, lli>;
using vll = vector<lli>;
lli mod197 = 1000000007LL;
lli INF = 10000000000000;
template <typename T>
T extgcd(T a, T b, T& x, T& y) {
  T d = a;
  if (b != 0) {
    d = extgcd(b, a % b, y, x);
    y -= (a / b) * x;
  } else {
    x = 1;
    y = 0;
  }
  return d;
}
int main(void) {
  string n;
  cin >> n;
  string arr[] = {
      "pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon",
  };
  cout << arr[n[0] - '0'] << endl;
  return 0;
}
