#include <bits/stdc++.h>
const int N = 100005;
const int mod = 1000000007;
using namespace std;
int a[10];
int tmp[10];
int main() {
  for (int i = 0; i < 6; ++i) {
    scanf("%d", &a[i]);
  }
  sort(a, a + 6);
  int cur = a[3];
  int tm = 0;
  for (int i = 0; i < 6; ++i) {
    if (a[i] != cur) tmp[tm++] = a[i];
  }
  if (tm >= 3) {
    cout << "Alien" << endl;
  } else {
    if (tm == 0) {
      cout << "Elephant" << endl;
    } else if (tm == 1) {
      cout << "Bear" << endl;
    } else {
      if (tmp[0] == tmp[1]) {
        cout << "Elephant" << endl;
      } else {
        cout << "Bear" << endl;
      }
    }
  }
  return 0;
}
