#include <bits/stdc++.h>
using namespace std;
int main() {
  set<int> q;
  int flag = 0, flag1 = 0, flag2 = 0, a, num[105] = {0};
  for (int i = 0; i < 6; i++) {
    cin >> a;
    q.insert(a);
    num[a]++;
    if (num[a] == 4) flag = 1;
    if (num[a] == 5) flag2 = 1;
    if (num[a] == 6) flag1 = 1;
  }
  if (flag == 0)
    cout << "Alien" << endl;
  else {
    if (flag1 == 1) {
      cout << "Elephant" << endl;
      return 0;
    } else if (flag2 == 1 && flag1 == 0)
      cout << "Bear" << endl;
    else if (q.size() == 3)
      cout << "Bear" << endl;
    else
      cout << "Elephant" << endl;
  }
  return 0;
}
