#include <bits/stdc++.h>
using namespace std;
int main() {
  string str, ans = "Hon";
  cin >> str;
  int s = str.size() - 1;
  if (str.at(s) == '3') ans = "Bon";
  if (str.at(s) == '0' || str.at(s) == '1' || str.at(s) == '6' ||
      str.at(s) == '8')
    ans = "Pon";
  cout << ans << endl;
}
