#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  int b[10];
  for (int i = 0; i < 10; i++) b[i] = 0;
  for (int i = 0; i < 6; i++) {
    cin >> a;
    b[a]++;
  }
  for (int i = 0; i < 10; i++) {
    if (b[i] >= 4) {
      for (int i = 0; i < 10; i++) {
        if (b[i] == 2 || b[i] == 6) {
          cout << "Elephant";
          return 0;
        }
      }
      cout << "Bear";
      return 0;
    }
  }
  cout << "Alien";
  return 0;
}
