#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
unsigned long long gcd(unsigned long long a, unsigned long long b) {
  return b ? gcd(b, a % b) : a;
}
unsigned long long lcm(unsigned long long a, unsigned long long b) {
  return a / gcd(a, b) * b;
}
void func(long long N) {}
int main() {
  int n;
  cin >> n;
  vector<string> s = {"hon", "pon", "hon", "bon", "hon",
                      "hon", "pon", "hon", "pon", "hon"};
  cout << s[n % 10] << endl;
  return 0;
}
