#include <bits/stdc++.h>
int cnt[10];
int main() {
  int i;
  int a, b;
  int foot;
  while (scanf("%d", &a) != EOF) {
    memset(cnt, 0, sizeof(cnt));
    foot = 0;
    cnt[a]++;
    for (i = 1; i < 6; i++) {
      scanf("%d", &a);
      cnt[a]++;
    }
    a = b = foot = 0;
    for (i = 1; i < 10; i++) {
      if (cnt[i] >= 4) {
        cnt[i] -= 4;
        foot = 1;
        i--;
      } else if (cnt[i] >= 1) {
        if (a == 0)
          a = i;
        else
          b = i;
        cnt[i] -= 1;
        i--;
      }
    }
    if (foot) {
      if (a == b)
        puts("Elephant");
      else
        puts("Bear");
    } else
      puts("Alien");
  }
  return 0;
}
