#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n = 6;
  long long a[n];
  long long i = 0;
  while (n--) {
    cin >> a[i];
    i++;
  }
  sort(a, a + 6);
  vector<long long> v;
  for (long long i = 0; i < 6; i++) {
    long long cnt = 1;
    for (long long j = i + 1; j < 6; j++) {
      if (a[i] == a[j]) {
        cnt++;
        i = j;
      } else {
        break;
      }
    }
    v.push_back(cnt);
  }
  sort(v.rbegin(), v.rend());
  if (v[0] == 4 && v[1] == 1 && v[2] == 1 || v[0] == 5) {
    cout << "Bear" << endl;
  } else if (v[0] == 4 && v[1] == 2 || v[0] == 6) {
    cout << "Elephant" << endl;
  } else {
    cout << "Alien" << endl;
  }
  return 0;
}
