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