#include <bits/stdc++.h>
using namespace std;
int main() {
  int num[6], x;
  map<int, int> lo;
  for (int i = 0; i < 6; ++i) {
    cin >> num[i];
    lo[num[i]]++;
  }
  bool al = true;
  for (int i = 0; i < 6; ++i) {
    if (lo[num[i]] >= 4) {
      al = false;
      lo[num[i]] -= 4;
      break;
    }
  }
  if (al) {
    cout << "Alien" << endl;
    return 0;
  }
  int a = -1, b = -1;
  for (int i = 0; i < 6; ++i)
    if (lo[num[i]] > 0)
      if (a == -1) {
        a = num[i];
        lo[num[i]]--;
      } else {
        b = num[i];
        break;
      }
  if (a == b)
    cout << "Elephant" << endl;
  else
    cout << "Bear" << endl;
}
