#include <bits/stdc++.h>
using namespace std;
int cnt[11];
int main() {
  int k;
  for (int i = 0; i < 6; ++i) {
    cin >> k;
    cnt[k]++;
  }
  bool leg = false;
  int a, b, m = 0;
  for (int i = 0; i < 11; ++i) {
    if (cnt[i] == 0) continue;
    if (cnt[i] >= 4) {
      leg = true;
      cnt[i] -= 4;
    }
    if (cnt[i] == 2) {
      a = i;
      b = i;
    }
    if (cnt[i] == 1) {
      m++;
    }
  }
  if (a == b && leg)
    cout << "Elephant" << endl;
  else if (leg && m == 2)
    cout << "Bear" << endl;
  else
    cout << "Alien" << endl;
  return 0;
}
