#include <bits/stdc++.h>
using namespace std;
int c[11], a;
int main() {
  bool bear = 0, e1 = 0, e2 = 0, e3 = 0;
  for (int i = 0; i < 6; i++) {
    cin >> a;
    c[a]++;
  }
  for (int i = 1; i <= 10; i++) {
    if (c[i] == 5)
      bear = 1;
    else if (c[i] == 2)
      e2 = 1;
    else if (c[i] == 4)
      e1 = 1;
    else if (c[i] == 6)
      e3 = 1;
  }
  if ((e1 == 1 && e2 == 1) || e3 == 1)
    cout << "Elephant" << endl;
  else if ((e1 && e2 != 1) || bear)
    cout << "Bear" << endl;
  else
    cout << "Alien" << endl;
  return 0;
}
