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