#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  set<int> hon, bon, pon;
  hon = {2, 4, 5, 7, 9};
  pon = {3};
  bon = {0, 1, 6, 8};
  int num = n % 10;
  if (hon.count(num))
    cout << "hon" << endl;
  else if (bon.count(num))
    cout << "bon" << endl;
  else
    cout << "pon" << endl;
}
