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