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