#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int a[12];
  memset(a, 0, sizeof(a));
  int c;
  bool ok = false;
  for (int i = 0; i < 6; i++) {
    scanf("%d", &c);
    a[c]++;
    if (a[c] >= 4) {
      ok = true;
      a[c] -= 4;
    }
  }
  if (!ok)
    cout << "Alien";
  else {
    int l = 12, h = -1;
    for (int i = 1; i <= 10; i++) {
      if (a[i] > 0) {
        l = min(l, i);
        h = max(h, i);
      }
    }
    if (h == l)
      cout << "Elephant";
    else
      cout << "Bear";
  }
  return 0;
}
