#include <bits/stdc++.h>
using namespace std;
int main() {
  char N[3];
  for (int i = 0; i < 3; i++) {
    cin >> N[i];
  }
  if (N[2] == 3) {
    cout << "bon";
  } else if (N[2] == 0 || N[2] == 1 || N[2] == 6 || N[2] == 8) {
    cout << "pon";
  } else {
    cout << "hon";
  }
}
