#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, test, kase = 0;
  map<int, int> mp;
  bool mark[10];
  memset(mark, false, sizeof mark);
  vector<int> v;
  for (i = 0; i < 6; i++) {
    scanf("%d", &k);
    mp[k]++;
    if (mark[k] == false) {
      v.push_back(k);
      mark[k] = true;
    }
  }
  sort(v.begin(), v.end());
  int len = v.size();
  if ((len == 2 && (mp[v[0]] == 4 || mp[v[1]] == 4)) || len == 1)
    printf("Elephant\n");
  else if ((len == 3 && (mp[v[1]] == 4 || mp[v[2]] == 4 || mp[v[0]] == 4)) ||
           (len == 2 && (mp[v[0]] == 1 || mp[v[1]] == 1)))
    printf("Bear\n");
  else
    printf("Alien\n");
  return 0;
}
