#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long ar[6];
  for (long long i = 0; i < 6; i++) cin >> ar[i];
  sort(ar, ar + 6);
  if (ar[0] == ar[1] && ar[1] == ar[2] && ar[2] == ar[3] ||
      ar[1] == ar[2] && ar[2] == ar[3] && ar[3] == ar[4] ||
      ar[2] == ar[3] && ar[3] == ar[4] && ar[4] == ar[5]) {
    if (ar[0] == ar[1] && ar[1] == ar[2] && ar[2] == ar[3] && ar[4] == ar[5] ||
        ar[1] == ar[2] && ar[2] == ar[3] && ar[3] == ar[4] && ar[0] == ar[5] ||
        ar[2] == ar[3] && ar[3] == ar[4] && ar[4] == ar[5] && ar[0] == ar[1])
      cout << "Elephant" << endl;
    else
      cout << "Bear" << endl;
  } else
    cout << "Alien" << endl;
  return 0;
}
