#include <bits/stdc++.h>
using namespace std;
long long gcd(long long x, long long y) { return y ? gcd(y, x % y) : x; }
long long lcm(long long x, long long y) { return x / gcd(x, y) * y; }
long long jou(long long N, long long P) {
  if (P == 0) return 1;
  if (P % 2 == 0) {
    long long t = jou(N, P / 2);
    return t * t % 1000000007;
  }
  return (N * jou(N, P - 1)) % 1000000007;
}
int main() {
  int a;
  cin >> a;
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9)
    cout << "hon" << endl;
  else if (a == 3)
    cout << "bon" << endl;
  else
    cout << "pon" << endl;
}
