#include <bits/stdc++.h>
using namespace std;
int a[11];
int main() {
  int i, n, m, x;
  while (scanf("%d", &a[0]) > 0) {
    int c[33] = {0};
    c[a[0]]++;
    for ((i) = 0; (i) < (5); (i)++) {
      scanf("%d", &a[i + 1]);
      c[a[i + 1]]++;
    }
    bool f = 0;
    int mx = 0;
    for ((i) = 0; (i) < (11); (i)++) {
      mx = max(mx, c[i]);
      c[i] = c[i] % 4;
      if (c[i] == 2) f = 1;
    }
    if (mx < 4)
      printf("Alien\n");
    else if (f)
      printf("Elephant\n");
    else
      printf("Bear\n");
  }
  return 0;
}
