#include <bits/stdc++.h>
using namespace std;
int main() {
  int array[10];
  memset(array, 0, sizeof array);
  int L;
  for (int i = 0; i < (int)6; ++i) {
    cin >> L;
    ;
    array[L]++;
  }
  int test = *max_element(array, array + 10);
  if (test < 4) return cout << "Alien", 0;
  ;
  if (test == 5) return cout << "Bear", 0;
  ;
  if (test == 6) return cout << "Elephant", 0;
  ;
  if (test == 4) {
    stable_sort(array, array + 10);
    if (binary_search(array, array + 10, 2)) {
      return cout << "Elephant", 0;
      ;
    }
    return cout << "Bear", 0;
    ;
  }
}
