#include <bits/stdc++.h>
using namespace std;
void fastio() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int32_t main() {
  fastio();
  long long n;
  cin >> n;
  long long d = n % 10;
  if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9)
    cout << "hon";
  else if (d == 0 || d == 1 || d == 6 || d == 8)
    cout << "pon";
  else if (d == 3)
    cout << "bon";
  return 0;
}
