#include <bits/stdc++.h>
using namespace std;
vector<int> a(6);
vector<int> b(6);
int main() {
  for (int i = 0; i < 6; i++) {
    cin >> a[i];
    b[i] = i;
  }
  do {
    bool ok = true;
    for (int i = 0; i < 3; i++) ok = ok & (a[b[i]] == a[b[i + 1]]);
    if (!ok) continue;
    if (a[b[4]] == a[b[5]]) {
      puts("Elephant");
      return 0;
    }
    if (a[b[4]] < a[b[5]]) {
      puts("Bear");
      return 0;
    }
  } while (next_permutation(b.begin(), b.end()));
  puts("Alien");
  return 0;
}
