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