#include <bits/stdc++.h>
using namespace std;
int main() {
  int arr[6];
  bool flag_leg = false;
  int key;
  for (int i = 0; i < 6; i++) cin >> arr[i];
  for (int i = 0; i < 3; i++) {
    int c = 0;
    for (int j = 0; j < 6; j++)
      if (arr[j] == arr[i]) c++;
    key = arr[i];
    if (c >= 4) {
      int coun = 0;
      int k = 0;
      while (coun < 4) {
        if (arr[k] == key) {
          coun++;
          arr[k] = 0;
        }
        k++;
      }
      flag_leg = true;
      break;
    }
  }
  int a, b;
  if (flag_leg) {
    for (int j = 0; j < 6; j++) {
      if (arr[j] != 0) {
        a = arr[j];
        arr[j] = 0;
        break;
      }
    }
    for (int j = 0; j < 6; j++) {
      if (arr[j] != 0) {
        b = arr[j];
        break;
      }
    }
    if (a == b)
      cout << "Elephant";
    else
      cout << "Bear";
  } else
    cout << "Alien";
  cout << endl;
}
