#include <bits/stdc++.h>
using namespace std;
vector<int> a = vector<int>(10, 0);
vector<int> b;
int main() {
  srand(time(NULL));
  for (int i = 0; i < 6; i++) {
    int x;
    cin >> x;
    a[x]++;
  }
  bool f = false;
  for (int i = 0; i < 10; i++) {
    if (a[i] != 0) {
      b.push_back(a[i]);
    }
    if (a[i] >= 4) {
      f = true;
    }
  }
  if (b.size() > 3 || f == false) {
    cout << "Alien" << endl;
    return 0;
  }
  sort(b.begin(), b.end());
  if (b.size() == 3 || (b[0] == 1 && b[1] == 5)) {
    cout << "Bear" << endl;
    return 0;
  }
  if (b.size() <= 2) {
    cout << "Elephant" << endl;
    return 0;
  }
  return 0;
}
