#include <bits/stdc++.h>
using namespace std;
int main() {
  int ar[11] = {0}, leg = 0;
  for (int i = 0; i < 6; i++) {
    int y;
    cin >> y;
    ar[y]++;
    leg = max(ar[y], leg);
  }
  if (leg < 4) {
    puts("Alien");
    return 0;
  }
  for (int i = 0; i < 11; i++) {
    if (ar[i] == 2 || ar[i] == 6) {
      puts("Elephant");
      return 0;
    }
  }
  puts("Bear");
}
