#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int one = n % 10;
  if (one == 0 || one == 1 || one == 6 || one == 8)
    cout << "hon";
  else if (one == 3)
    cout << "bon";
  else
    cout << "pon";
  return 0;
}
