#include <bits/stdc++.h>
using namespace std;
int arr[11];
int main() {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  arr[a]++;
  arr[b]++;
  arr[c]++;
  arr[d]++;
  arr[e]++;
  arr[f]++;
  int fc = 0, m = 0, n = 0, k = 0;
  for (int i = 1; i <= 9; i++) {
    if (arr[i] == 4)
      fc++;
    else if (arr[i] == 2)
      m++;
    else if (arr[i] == 6)
      n++;
    else if (arr[i] == 5)
      k++;
  }
  if (fc == 0 && k == 0 && n == 0)
    cout << "Alien";
  else if (fc != 0 && m != 0 || n != 0)
    cout << "Elephant";
  else if (fc != 0 && m == 0 || k != 0)
    cout << "Bear";
  return 0;
}
