#include <bits/stdc++.h>
using namespace std;
set<int> s;
int aa[15], b[8];
int main() {
  int a, be, c, d, e, f;
  s.clear();
  scanf("%d %d %d %d %d %d", &a, &be, &c, &d, &e, &f);
  aa[a]++;
  s.insert(a);
  aa[be]++;
  s.insert(be);
  aa[c]++;
  s.insert(c);
  aa[d]++;
  s.insert(d);
  aa[e]++;
  s.insert(e);
  aa[f]++;
  s.insert(f);
  if ((int)s.size() > 3)
    printf("Alien");
  else {
    for (int i = 1; i <= 9; i++) {
      if (aa[i] > 0) b[aa[i]]++;
    }
    if ((b[4] == 1 & b[2] == 1) || (b[6] == 1))
      printf("Elephant");
    else if ((b[4] == 1 && b[1] == 2) || (b[5] == 1 && b[1] == 1))
      printf("Bear");
    else
      printf("Alien");
  }
  s.clear();
  return 0;
}
