#include <bits/stdc++.h>
using namespace std;
const int dx[] = {-1, -1, -1, 0, 0, 0, 1, 1, 1};
const int dy[] = {-1, 0, 1, -1, 0, 1, -1, 0, 1};
void AIA() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  AIA();
  int t;
  cin >> t;
  int n1 = 0, n2 = 0, n3 = 0;
  while (t > 0) {
    if (t % 10 == 2 || t % 10 == 4 || t % 10 == 5 || t % 10 == 7 || t % 10 == 9)
      n1++;
    else if (t % 10 == 0 || t % 10 == 1 || t % 10 == 6 || t % 10 == 8)
      n2++;
    else
      n3++;
    t /= 10;
  }
  if (n3)
    cout << "bon";
  else if (n2 >= n1)
    cout << "pon";
  else
    cout << "hon";
  return 0;
}
