#include <bits/stdc++.h>
using namespace std;
long long int arr[10000];
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int a, b, c, i, j, k, n, m, state = 0;
  for (i = 0; i < 6; i++) cin >> arr[i];
  sort(arr, arr + 6);
  for (i = 0; i < 3; i++) {
    if (arr[i] == arr[i + 1] && arr[i + 1] == arr[i + 2] &&
        arr[i + 2] == arr[i + 3] && state == 0) {
      state = 1;
      arr[i] = 0;
      arr[i + 1] = 0;
      arr[i + 2] = 0;
      arr[i + 3] = 0;
      break;
    }
  }
  if (state == 0) {
    cout << "Alien" << endl;
    return 0;
  }
  long long int t1 = 0, t2 = 0;
  for (i = 0; i < 6; i++) {
    if (arr[i] != 0 && t1 == 0)
      t1 = arr[i];
    else if (arr[i] != 0)
      t2 = arr[i];
  }
  if (t1 == t2)
    cout << "Elephant" << endl;
  else
    cout << "Bear" << endl;
  return 0;
}
