#include <bits/stdc++.h>
using namespace std;
bool cmp(int a, int b) { return a > b; }
int l[30], aa[20];
multimap<int, int> mm;
int main() {
  for (int i = 0; i < 6; i++) {
    cin >> l[i];
    aa[l[i]]++;
  }
  bool found = false;
  for (int i = 1; i < 10; i++) {
    mm.insert(make_pair(aa[i], i));
  }
  auto it = mm.rbegin();
  if (it->first == 6) {
    cout << "Elephant";
  } else if (it->first == 5) {
    cout << "Bear";
  } else if (it->first >= 4) {
    it++;
    int ct = it->first, v1 = it->second;
    if (ct == 2) {
      cout << "Elephant";
      return 0;
    }
    it++;
    int v2 = it->second;
    if (v1 > v2 || v1 < v2) {
      cout << "Bear";
    }
  } else {
    cout << "Alien";
  }
  cout << endl;
  return 0;
}
