#include <bits/stdc++.h>
int arr[6], count[15] = {0};
int main() {
  int wqeqw, sads;
  int i, flag = 0, flag2 = 0, val;
  for (i = 0; i < 6; i++) {
    scanf("%d", &arr[i]);
    count[arr[i]]++;
  }
  for (i = 1; i <= 9; i++) {
    if (count[i] >= 4) {
      if (count[i] == 5) {
        printf("Bear\n");
        return 0;
      } else if (count[i] == 6) {
        printf("Elephant\n");
        return 0;
      } else {
        val = count[i];
        flag = 1;
        break;
      }
    }
  }
  if (flag == 1) {
    for (i = 1; i <= 9; i++) {
      if (count[i] == 2) {
        flag2 = 1;
        break;
      }
    }
    if (flag2 == 1)
      printf("Elephant\n");
    else
      printf("Bear\n");
  } else {
    printf("Alien\n");
  }
  return 0;
}
