#include <bits/stdc++.h>
using namespace std;
set<int> S;
int a[10];
int main() {
  int x;
  for (int i = 0; i < 6; i++) cin >> x, S.insert(x), a[x]++;
  if (S.size() == 1)
    cout << "Elephant";
  else if (S.size() == 2) {
    if (a[*S.begin()] == 4 && a[*S.rbegin()] == 2 ||
        a[*S.begin()] == 2 && a[*S.rbegin()] == 4)
      cout << "Elephant";
    else if (a[*S.begin()] == 5 && a[*S.rbegin()] == 1 ||
             a[*S.begin()] == 1 && a[*S.rbegin()] == 5)
      cout << "Bear";
    else
      cout << "Alien";
  } else if (S.size() == 3) {
    bool flag = false;
    for (int i : S)
      if (a[i] == 4) flag = true;
    if (flag)
      cout << "Bear";
    else
      cout << "Alien";
  } else
    cout << "Alien";
  return 0;
}
