#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[10], x, inp[7], head = 0, body = 0, leg = 0, p = 0, mx = 0;
  memset(a, 0, sizeof a);
  for (int i = 0; i < 6; i++) {
    cin >> inp[i];
    a[inp[i]]++;
    mx = max(mx, a[inp[i]]);
    if (a[inp[i]] >= 4) leg = inp[i];
  }
  if (mx == 6)
    cout << "Elephant";
  else if (mx == 5)
    cout << "Bear";
  else if (mx == 4) {
    for (int i = 0; i < 6; i++)
      if (inp[i] != leg) {
        p = i;
        head = inp[i];
        break;
      }
    if (a[head] == 2)
      cout << "Elephant";
    else {
      for (int i = p + 1; i < 6; i++)
        if (inp[i] != leg) {
          body = inp[i];
          break;
        }
      if (body > head)
        cout << "Bear";
      else
        cout << "Alien";
    }
  } else
    cout << "Alien";
}
