#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
const long long MOD = 1e9 + 7;
long long n;
signed main() {
  cin >> n;
  long long cnt = n % 10;
  if (cnt == 2 || cnt == 4 || cnt == 7 || cnt == 9) {
    cout << "hon" << endl;
  } else if (cnt == 3) {
    cout << "bon" << endl;
  } else {
    cout << "pon" << endl;
  }
  return 0;
}
