#include <bits/stdc++.h>
long long int mod = (long long int)1000000007;
using namespace std;
void solve() {
  long long i, j, k, n;
  std::cout.precision(10);
  int yes = 0;
  cin >> n;
  n = n % 10;
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon";
  } else if (n == 4) {
    cout << "bon";
  } else {
    cout << "pon";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int i, j, k;
  int t;
  std::cout.precision(10);
  t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
}
