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