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