#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n;
  cin >> n;
  long long q = n % 10;
  if (q == 2 || q == 4 || q == 5 || q == 7 || q == 9)
    cout << "hon";
  else if (q == 0 || q == 1 || q == 6 || q == 8)
    cout << "pon";
  else
    cout << "bon";
  return 0;
}
