#include <bits/stdc++.h>
int H[10];
int main() {
  memset(H, 0, sizeof(H));
  for (int _n = 6, i = 0; i < _n; i++) {
    int v;
    scanf("%d", &v);
    H[v]++;
  }
  bool n6, n4, n5, n2;
  n6 = n4 = n5 = n2 = false;
  for (int _n = 10, i = 0; i < _n; i++)
    if (H[i] == 4)
      n4 = true;
    else if (H[i] == 6)
      n6 = true;
    else if (H[i] == 5)
      n5 = true;
    else if (H[i] == 2)
      n2 = true;
  if (n6 || (n4 && n2))
    printf("Elephant\n");
  else if ((n4 && !n2) || n5)
    printf("Bear\n");
  else
    printf("Alien\n");
  return 0;
}
