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