#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, i, j;
  cin >> a;
  b = a % 10;
  if (b == 2 || b == 4 || b == 5 || b == 7 || b == 9)
    cout << "hon" << endl;
  else if (b == 6 || b == 1 || b == 8)
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
  return 0;
}
