#include <bits/stdc++.h>
using namespace std;
int cnt[11], l[11];
int main() {
  for (int i = 0; i < 6; i++) {
    scanf("%d", &l[i]);
    cnt[l[i]]++;
  }
  int ok = 0;
  for (int i = 1; i < 10; i++)
    if (cnt[i] >= 4) {
      ok = 1;
      cnt[i] -= 4;
    }
  if (ok) {
    int a = -1, b = -1;
    for (int i = 1; i < 10; i++)
      if (cnt[i]) {
        if (a == -1)
          a = i;
        else
          b = i;
      }
    if (b == -1) b = a;
    if (a < b)
      printf("Bear\n");
    else
      printf("Elephant\n");
  } else
    printf("Alien\n");
  return 0;
}
