#include <bits/stdc++.h>
using namespace std;
int a[10];
int main() {
  int i;
  for (int i = (1), _b = (6); i <= _b; i++) cin >> a[i];
  sort(a + 1, a + 6 + 1);
  for (int i = (1), _b = (3); i <= _b; i++) {
    int d = 1;
    for (int j = (1), _b = (3); j <= _b; j++) {
      if (a[i + j] == a[i]) d++;
    }
    if (d == 4) {
      if (i == 1) {
        if (a[5] == a[6]) {
          printf("Elephant");
          exit(0);
        } else {
          printf("Bear");
          exit(0);
        }
      } else if (i == 2) {
        if (a[1] == a[6]) {
          printf("Elephant");
          exit(0);
        } else {
          printf("Bear");
          exit(0);
        }
      } else {
        if (a[1] == a[2]) {
          printf("Elephant");
          exit(0);
        } else {
          printf("Bear");
          exit(0);
        }
      }
    }
  }
  printf("Alien");
}
