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