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