#include <bits/stdc++.h>
using namespace std;
int main() {
  int l[10];
  int n;
  for (int i = 0; i < 10; i++) l[i] = 0;
  for (int i = 0; i < 6; i++) {
    cin >> n;
    l[n] += 1;
  }
  int status = 0;
  for (int i = 0; i < 10; i++) {
    if (l[i] >= 4) {
      status = 1;
      l[i] -= 4;
    }
  }
  if (status == 0) {
    cout << "Alien" << endl;
  } else {
    for (int i = 0; i < 10; i++) {
      if (l[i] == 2) {
        status = 2;
        l[i] = 0;
      }
    }
    if (status == 1) {
      cout << "Bear" << endl;
    } else
      cout << "Elephant" << endl;
  }
}
