#include <bits/stdc++.h>
using namespace std;
int main() {
  char N[3];
  cin >> N[3];
  N[3] / 1;
  N[3] % 10;
  if (N[3] == 3)
    cout << "bon" << endl;
  else if (N[3] == 2)
    cout << "hon" << endl;
  else if (N[3] == 4)
    cout << "hon" << endl;
  else if (N[3] == 7)
    cout << "hon" << endl;
  else if (N[3] == 9)
    cout << "hon" << endl;
  else
    cout << "pon" << endl;
}
