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