#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  map<int, int> m;
  for (int i = 1; i <= 6; i++) {
    int l;
    cin >> l;
    m[l]++;
  }
  bool bear = false, leg = false;
  for (auto it = m.begin(); it != m.end(); it++) {
    if (it->second >= 4) leg = true;
    if (it->second == 1) bear = true;
  }
  if (!leg)
    cout << "Alien" << endl;
  else if (bear)
    cout << "Bear" << endl;
  else
    cout << "Elephant" << endl;
  return 0;
}
