#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> l;
  int r = 0;
  for (int i = 0; i < 6; ++i) {
    int a;
    cin >> a;
    l[a]++;
    if (l[a] >= 4) {
      r = l[a];
    }
  }
  if (r < 4) {
    cout << "Alien";
  } else if (l.size() <= 2 && (r == 4 || r == 6)) {
    cout << "Elephant";
  } else {
    cout << "Bear";
  }
  return 0;
}
