#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> M;
  int tmp;
  for (int i = 0; i < 6; i++) {
    cin >> tmp;
    M[tmp]++;
  }
  bool haveLegs = false;
  for (map<int, int>::iterator i = M.begin(); i != M.end(); i++) {
    if ((*i).second >= 4) {
      haveLegs = true;
      (*i).second -= 4;
    }
  }
  if (!haveLegs) {
    cout << "Alien" << endl;
    return 0;
  }
  for (map<int, int>::iterator i = M.begin(); i != M.end(); i++) {
    if ((*i).second == 1) {
      cout << "Bear";
      cout << endl;
      return 0;
    }
  }
  cout << "Elephant";
  cout << endl;
  return 0;
}
