#include <bits/stdc++.h>
using namespace std;
int a[10];
int main() {
  int k, f = 0, t = 0, ot = 0;
  for (int i = 0; i < 6; i++) {
    cin >> k;
    a[k]++;
  }
  for (int i = 1; i <= 9; i++) {
    if (a[i] == 6) {
      cout << "Elephant";
      return 0;
    }
    if (a[i] == 5) {
      cout << "Bear";
      return 0;
    }
    if (a[i] == 4)
      f++;
    else if (a[i] == 2)
      t++;
    else
      ot++;
  }
  if (f && t)
    cout << "Elephant";
  else if (f && ot)
    cout << "Bear";
  else
    cout << "Alien";
  return 0;
}
