#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> V(11, 0);
  for (int i = 0; i < 6; i++) {
    int no;
    cin >> no;
    V[no]++;
  }
  bool flag = false;
  for (int i = 1; i <= 9; i++) {
    if (V[i] >= 4) {
      V[i] = V[i] - 4;
      flag = true;
      break;
    }
  }
  if (flag == false) {
    cout << "Alien" << endl;
  } else {
    int con = 0;
    for (int i = 1; i <= 9; i++) {
      if (V[i] != 0) con++;
    }
    if (con == 1)
      cout << "Elephant" << endl;
    else
      cout << "Bear" << endl;
  }
}
