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