#include <bits/stdc++.h>
using namespace std;
const int MN = 111;
int l, r, n, a[9], ans, maxx = -1, val;
vector<int> res;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  for (int i = 1; i <= 6; i++) {
    cin >> val;
    res.push_back(val);
  }
  sort(res.begin(), res.end());
  int lc = res[2];
  int cnt = 0;
  int m = res.size();
  for (int i = 0; i < m; i++)
    if (res[i] == lc) cnt++;
  if (cnt < 4) {
    cout << "Alien\n";
    return 0;
  }
  for (int i = 0; res.size() > 2; i++) {
    if (res[i] == lc) {
      res.erase(res.begin() + i);
      i--;
    }
  }
  if (res[0] == res[1]) {
    cout << "Elephant\n";
  } else {
    cout << "Bear\n";
  }
}
