#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  int A[10] = {0};
  A[a]++;
  A[b]++;
  A[c]++;
  A[d]++;
  A[e]++;
  A[f]++;
  sort(A, A + 10, greater<int>());
  if ((A[0] == 4 && A[1] == 2) || A[0] == 6) {
    cout << "Elephant" << endl;
  } else if ((A[0] == 4 && A[1] == 1 && A[2] == 1) ||
             (A[0] == 5 && A[1] == 1)) {
    cout << "Bear" << endl;
  } else
    cout << "Alien" << endl;
  return 0;
}
