#include <bits/stdc++.h>
using namespace std;
long long x, a[11];
bool skuy;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  for (long long i = 1; i <= 6; i++) {
    cin >> x;
    a[x]++;
  }
  for (long long i = 1; i <= 9; i++) {
    if (a[i] >= 4) {
      a[i] -= 4;
      skuy = 1;
      break;
    }
  }
  if (!skuy)
    cout << "Alien";
  else {
    for (long long i = 1; i <= 9; i++) {
      if (a[i] > 0) {
        if (a[i] >= 2)
          cout << "Elephant";
        else
          cout << "Bear";
        return 0;
      }
    }
  }
}
