#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
void solved() {
  string s;
  cin >> s;
  int len = s.size() - 1;
  if (s[len] == '2' || s[len] == '4' || s[len] == '5' || s[len] == '7' ||
      s[len] == '9')
    cout << "hon" << endl;
  else if (s[len] == 'len' || s[len] == '1' || s[len] == '6' || s[len] == '8')
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
}
int main() {
  solved();
  return 0;
}
