#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> vec(6);
  for (int i = 0; i < 6; i++) cin >> vec[i];
  sort(vec.begin(), vec.end());
  if (vec[0] == vec[3])
    cout << (vec[4] == vec[5] ? "Elephant" : "Bear");
  else if (vec[1] == vec[4])
    cout << "Bear";
  else if (vec[2] == vec[5])
    cout << (vec[0] == vec[1] ? "Elephant" : "Bear");
  else
    cout << "Alien";
}
