#include <bits/stdc++.h>
using namespace std;
int main() {
  int head, body;
  int t[6];
  for (int i = 0; i < 6; i++) {
    cin >> t[i];
  }
  sort(t, t + 6);
  int c = count(t, t + 6, t[3]);
  if (c >= 4) {
    if (c == 6) {
      head = t[3];
      body = head;
    } else if (c == 5) {
      if (t[0] < t[1]) {
        head = t[0];
        body = t[1];
      } else if (t[4] < t[5]) {
        head = t[4];
        body = t[5];
      }
    } else if (c == 4) {
      if (t[0] == t[1] && t[4] == t[5]) {
        head = t[0];
        body = head;
      } else if (t[4] == t[5] && t[0] == t[1]) {
        head = t[4];
        body = head;
      } else if (t[0] < t[1]) {
        head = t[0];
        body = t[1];
      } else if (t[4] < t[5]) {
        head = t[4];
        body = t[5];
      } else if (t[0] < t[5]) {
        head = t[0];
        body = t[5];
      }
    }
  } else {
    cout << "Alien" << endl;
    return 0;
  }
  if (body == head) {
    cout << "Elephant" << endl;
  } else if (body > head) {
    cout << "Bear" << endl;
  } else {
    cout << "Alien" << endl;
  }
  return 0;
}
