#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr ll mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  vector<ll> A(6);
  for (auto& _a : A) cin >> _a;
  sort(A.begin(), A.end());
  if (A[0] == A[1] && A[0] == A[2] && A[0] == A[3]) {
    if (A[5] != A[4]) {
      cout << "Bear" << '\n';
    } else {
      cout << "Elephant" << '\n';
    }
  } else if (A[1] == A[2] && A[1] == A[3] && A[1] == A[4]) {
    if (A[0] != A[5]) {
      cout << "Bear" << '\n';
    } else {
      cout << "Elephant" << '\n';
    }
  } else if (A[2] == A[3] && A[2] == A[4] && A[2] == A[5]) {
    if (A[0] != A[1]) {
      cout << "Bear" << '\n';
    } else {
      cout << "Elephant" << '\n';
    }
  } else {
    cout << "Alien" << '\n';
  }
}
