#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n = 6, cnt = 0, j = 0;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int b[2];
  sort(a, a + 6);
  for (int i = 0; i < 6; i++) {
    if (a[i] == a[2])
      cnt++;
    else {
      b[j] = a[i];
      j++;
    }
  }
  if (cnt < 4) {
    cout << "Alien";
  } else if (cnt == 6) {
    cout << "Elephant";
  } else if (cnt == 4 and b[0] == b[1]) {
    cout << "Elephant";
  } else {
    cout << "Bear";
  }
}
