#include <bits/stdc++.h>
using namespace std;
template <typename... T>
void read(T&... a) {
  ((cin >> a), ...);
}
template <typename... T>
void write(T&... a) {
  ((cout << a << " "), ...);
  cout << "\n";
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int a, mx = 0;
  int arr[10] = {0};
  for (int i = 0; i < 6; i++) {
    cin >> a;
    arr[a]++;
    mx = max(mx, arr[a]);
  }
  if (mx >= 5) {
    if (mx == 5)
      cout << "Bear"
           << "\n";
    else
      cout << "Elephant"
           << "\n";
  } else if (mx == 4) {
    int aa[2];
    int t = 0;
    for (int i = 0; i < 10; i++) {
      if (arr[i] != 4 && arr[i]) {
        if (arr[i] == 2) {
          cout << "Elephant"
               << "\n";
        } else
          cout << "Bear"
               << "\n";
        break;
      }
    }
  } else
    cout << "Alien"
         << "\n";
  return 0;
}
