#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int a[5] = {2, 4, 5, 7, 9};
  int b[4] = {0, 1, 6, 8};
  int c = 3;
  if (find(a, a + 5, t) != a + 5)
    cout << "hon";
  else if (c == t)
    cout << "bon";
  else
    cout << "pon";
}
