#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, a, ele = 0, leg = 0;
  map<int, int> hit;
  vector<int> v;
  for (i = 0; i < 6; i++) {
    cin >> a;
    if (hit[a] == 0) v.push_back(a);
    hit[a]++;
  }
  for (i = 0; i < v.size(); i++) {
    if (hit[v[i]] >= 4) {
      leg = 1;
      hit[v[i]] -= 4;
    }
  }
  for (i = 0; i < v.size(); i++)
    if (hit[v[i]] == 2) ele = 1;
  if (ele & leg)
    cout << "Elephant" << endl;
  else if (leg == 1)
    cout << "Bear" << endl;
  else
    cout << "Alien" << endl;
}
