#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long param[6];
  for (int i = 0; i < 6; i++) {
    cin >> param[i];
  }
  sort(param, param + 6);
  int four = 0, two = 0;
  for (int i = 0; i < 5; i++) {
    if (i <= 2) {
      if (param[i] == param[i + 1] && param[i + 1] == param[i + 2] &&
          param[i + 2] == param[i + 3]) {
        four = 1;
        i = i + 4;
      }
    }
    if (i < 5) {
      if (param[i] == param[i + 1]) {
        two = 1;
      }
    }
  }
  if (two == 1 && four == 1) {
    cout << "Elephant" << endl;
  } else if (two == 0 && four == 1) {
    cout << "Bear" << endl;
  } else {
    cout << "Alien" << endl;
  }
  return 0;
}
