#include <bits/stdc++.h>
using namespace std;
set<int> input;
int num[10];
int main() {
  int x;
  for (int i = 1; i <= 6; i++) {
    cin >> x;
    input.insert(x);
    num[x]++;
  }
  if (input.size() == 1) {
    cout << "Elephant" << endl;
  } else if (input.size() == 2) {
    set<int>::iterator it = input.begin();
    set<int>::iterator a = input.begin();
    set<int>::iterator b = input.begin();
    b++;
    if (num[*a] == 5 || num[*b] == 5)
      cout << "Bear" << endl;
    else if (num[*a] == 4 || num[*b] == 4)
      cout << "Elephant" << endl;
    else
      cout << "Alien" << endl;
  } else if (input.size() == 3) {
    bool four = false;
    set<int>::iterator it = input.begin();
    while (it != input.end()) {
      if (num[*it] == 4) {
        four = true;
        break;
      }
      it++;
    }
    if (four)
      cout << "Bear" << endl;
    else
      cout << "Alien" << endl;
  } else
    cout << "Alien" << endl;
  return 0;
}
