#include <bits/stdc++.h>
using namespace std;
int main() {
  int numbers;
  bool alien = false, elephant = false;
  map<int, int> length;
  for (int i = 0; i < 6; i++) {
    cin >> numbers;
    length[numbers]++;
  }
  for (std::map<int, int>::iterator it = length.begin(); it != length.end();
       ++it) {
    if (it->second >= 4) alien = true;
    if (it->second == 2 || it->second == 6) elephant = true;
  }
  if (alien == false)
    cout << "Alien" << endl;
  else if (alien == true && elephant == true)
    cout << "Elephant" << endl;
  else
    cout << "Bear" << endl;
  return 0;
}
