#include <bits/stdc++.h>
using namespace std;
int maxi(int x, int y) { return x > y ? x : y; }
int mini(int x, int y) { return x > y ? y : x; }
int main() {
  int x, i, minn = 11, maxn = -1;
  map<int, int> m;
  for (i = 0; i < 6; i++) {
    scanf("%d", &x);
    if (m.find(x) == m.end())
      m[x] = 1;
    else
      m[x]++;
  }
  for (map<int, int>::iterator it = m.begin(); it != m.end(); ++it) {
    maxn = maxi(maxn, it->second);
    minn = mini(minn, it->second);
  }
  if (maxn == 6)
    printf("Elephant");
  else if (maxn == 5)
    printf("Bear");
  else if (maxn == 4 && minn == 2)
    printf("Elephant");
  else if (maxn == 4 && minn == 1)
    printf("Bear");
  else
    printf("Alien");
  return 0;
}
