#include <bits/stdc++.h>
using namespace std;
class C_ {};
template <typename T>
C_& operator<<(C_& __m, const T& __s) {
  if (!1) cerr << "\E[91m" << __s << "\E[0m";
  return __m;
}
C_ merr;
struct __s {
  __s() {
    if (1) {
      ios_base::Init i;
      cin.sync_with_stdio(0);
      cin.tie(0);
    }
  }
  ~__s() {
    merr << "Execution time: " << fixed << setprecision(3)
         << (double)clock() / CLOCKS_PER_SEC << " s.\n";
  }
} __S;
int main() {
  int A[11] = {};
  bool bear = false, el = false;
  for (int i = 0; i < 6; i++) {
    cin >> A[i];
  }
  sort(A, A + 6);
  if (A[0] == A[3]) {
    if (A[4] == A[5]) {
      el = true;
    } else {
      bear = true;
    }
  } else if (A[1] == A[4]) {
    if (A[0] == A[5]) {
      el = true;
    } else {
      bear = true;
    }
  } else if (A[2] == A[5]) {
    if (A[0] == A[1]) {
      el = true;
    } else {
      bear = true;
    }
  }
  if (bear) {
    cout << "Bear" << '\n';
  }
  if (el) {
    cout << "Elephant" << '\n';
  }
  if (!bear && !el) {
    cout << "Alien" << '\n';
  }
  return 0;
}
