#include <bits/stdc++.h>
using namespace std;
int a[10];
bool cmp(int a, int b) {
  if (a > b)
    return true;
  else
    false;
}
int main(void) {
  int i, n = 6, h;
  for (i = 0; i < n; i++) {
    scanf("%d", &h);
    a[h]++;
  }
  sort(a, a + 10, greater<int>());
  int x = a[0];
  if (x == 4) {
    if (a[1] == 2)
      printf("Elephant\n");
    else
      printf("Bear\n");
  } else if (x == 5)
    printf("Bear\n");
  else if (x == 6)
    printf("Elephant\n");
  else
    printf("Alien\n");
  return 0;
}
