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