#include <bits/stdc++.h>
int main() {
  int ara[10] = {0}, i, n, j, flag = 0;
  for (i = 0; i < 6; i++) {
    scanf("%d", &n);
    ara[n] = ara[n] + 1;
  }
  for (i = 1; i <= 9; i++) {
    if (ara[i] >= 4) {
      for (j = 1; j <= 9; j++) {
        if (ara[j] == 2 || ara[j] == 6) {
          flag = 1;
          printf("Elephant");
          break;
        }
        if (ara[j] == 1) {
          flag = 1;
          printf("Bear");
          break;
        }
      }
    }
    if (flag == 1) break;
  }
  if (flag == 0) printf("Alien");
}
