#include <bits/stdc++.h>
int main() {
  int i, j, l = 0, a, A[6], n[6], m = 0;
  for (i = 0; i < 6; i++) {
    scanf("%d", &a);
    for (j = 0; j < l; j++) {
      if (A[j] == a) break;
    }
    if (j == l) {
      n[l] = 1;
      A[l++] = a;
    } else
      n[j]++;
  }
  for (i = 0; i < l; i++) {
    if (n[i] > m) m = n[i];
  }
  if (l == 1 || (l == 2 && m == 4))
    printf("Elephant");
  else if ((l == 2 && m == 5) || (l == 3 && m == 4))
    printf("Bear");
  else
    printf("Alien");
  return 0;
}
