#include <bits/stdc++.h>
using namespace std;
int main() {
  int arr[6], i;
  while (scanf("%d", &arr[0]) == 1) {
    for (i = 1; i < 6; i++) {
      scanf("%d", &arr[i]);
    }
    sort(arr, arr + 6);
    if (arr[0] < arr[5] && arr[1] == arr[2] && arr[2] == arr[3] &&
        arr[3] == arr[4])
      printf("Bear\n");
    else if (arr[0] < arr[1] && arr[2] == arr[3] && arr[3] == arr[4] &&
             arr[4] == arr[5])
      printf("Bear\n");
    else if (arr[4] < arr[5] && arr[0] == arr[1] && arr[1] == arr[2] &&
             arr[2] == arr[3])
      printf("Bear\n");
    else if (arr[4] == arr[5] && arr[0] == arr[1] && arr[1] == arr[2] &&
             arr[2] == arr[3])
      printf("Elephant\n");
    else if (arr[0] == arr[1] && arr[2] == arr[3] && arr[3] == arr[4] &&
             arr[4] == arr[5])
      printf("Elephant\n");
    else if (arr[0] == arr[5] && arr[1] == arr[2] && arr[2] == arr[3] &&
             arr[3] == arr[4])
      printf("Elephant\n");
    else
      printf("Alien\n");
  }
  return 0;
}
