#include <bits/stdc++.h>
using namespace std;
bool wayToSort(int i, int j) { return i > j; }
int main() {
  int temp;
  int v[10] = {};
  int alien = 1;
  int el;
  int l = 0;
  for (int i = 0; i < 6; i++) {
    cin >> temp;
    v[temp]++;
  }
  sort(v + 1, v + 10, wayToSort);
  if (v[1] < 4) {
    cout << "Alien" << endl;
    return 0;
  }
  if ((v[1] == 4 && v[2] == 2) || v[1] == 6) {
    cout << "Elephant" << endl;
    return 0;
  }
  cout << "Bear" << endl;
  return 0;
}
