#include <bits/stdc++.h>
int t, i, len[10] = {0}, a = 0, b = 0, c = 0;
int main() {
  for (i = 0; i < 6; i++) {
    scanf("%d", &t);
    len[t]++;
  }
  for (i = 0; i < 10; i++) {
    if (len[i] >= 4) {
      a = 1;
      len[i] -= 4;
    }
  }
  for (i = 0; i < 10; i++) {
    if (len[i] == 2) b = 1;
    if (len[i] == 1) c++;
  }
  if (a == 0) printf("Alien\n");
  if (a == 1 && b == 1) printf("Elephant\n");
  if (a == 1 && c == 2) printf("Bear\n");
  return 0;
}
