#include <bits/stdc++.h>
int arr[10];
int main() {
  int i, j, k, a, b, c, x, y, z;
  scanf("%d %d %d %d %d %d", &a, &b, &c, &x, &y, &z);
  arr[a]++;
  arr[b]++;
  arr[c]++;
  arr[x]++;
  arr[y]++;
  arr[z]++;
  int flag = 0;
  int count1 = 0, count2;
  for (i = 1; i < 10; i++) {
    if (arr[i] >= 4) {
      count1 = 1;
      arr[i] -= 4;
    }
  }
  if (count1 == 0)
    printf("Alien");
  else {
    for (i = 1; i < 10; i++) {
      if (arr[i] == 2) {
        a = i;
        flag = 1;
        break;
      }
    }
    if (flag == 1)
      printf("Elephant");
    else
      printf("Bear");
  }
  return 0;
}
