#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n1;
  cin >> n1;
  string str = to_string(n1);
  int n = str.size();
  if (str[n - 1] == '2' || str[n - 1] == '4' || str[n - 1] == '5' ||
      str[n - 1] == '7' || str[n - 1] == '9')
    cout << "hon"
         << "\n";
  else if (str[n - 1] == '0' || str[n - 1] == '1' || str[n - 1] == '6' ||
           str[n - 1] == '8')
    cout << "pon"
         << "\n";
  else
    cout << "bob"
         << "\n";
}
