#include <bits/stdc++.h>
int main() {
  int i, j, k, t, c, m, a[6], b[6];
  while (scanf("%d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5]) !=
         EOF) {
    for (i = 0; i < 3; i++) {
      t = 0;
      k = a[i];
      for (j = 0; j < 6; j++)
        if (k == a[j]) {
          b[t] = a[j];
          t++;
        }
      if (t >= 4) break;
    }
    if (t < 4) {
      printf("Alien\n");
      continue;
    } else if (t == 6) {
      printf("Elephant\n");
      continue;
    } else if (t == 5) {
      for (j = 0; j < 6; j++) {
        if (a[j] != b[0]) {
          b[5] = a[j];
          break;
        }
      }
      if (b[5] == b[0]) {
        printf("Elephant\n");
        continue;
      } else {
        printf("Bear\n");
        continue;
      }
    } else
      m = 4;
    for (j = 0; j < 6; j++) {
      if (a[j] != b[0]) {
        b[m] = a[j];
        m++;
      }
    }
    if (b[4] == b[5]) {
      printf("Elephant\n");
    } else {
      printf("Bear\n");
    }
  }
  return 0;
}
