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