#include <bits/stdc++.h>
int main() {
  static char used[7];
  static int ll[6], kk[10];
  int i;
  for (i = 0; i < 6; i++) {
    scanf("%d", &ll[i]);
    kk[ll[i]]++;
  }
  for (i = 0; i <= 9; i++) used[kk[i]] = 1;
  if ((used[4] == 1 && used[1] == 1) || used[5] == 1)
    printf("Bear\n");
  else if (used[4] == 1 || used[6] == 1)
    printf("Elephant\n");
  else
    printf("Alien\n");
  return 0;
}
