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