#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int i;
  cin >> s;
  i = s.size() - 1;
  if (s.at(i) == 3) {
    cout << "bon" << endl;
  } else if (s.at(i) == 0 || s.at(i) == 1 || s.at(i) == 6 || s.at(i) == 8) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
}
