#include <bits/stdc++.h>
using namespace std;
int len[2200];
int main() {
  int t;
  for (int i = 0; i < 6; i++) {
    cin >> t;
    len[t]++;
  }
  int n = 0;
  for (int i = 1; i <= 9; i++) {
    if (len[i] >= 4) {
      n = i;
      len[i] -= 4;
    }
  }
  if (n == 0) {
    cout << "Alien";
    return 0;
  }
  for (int i = 1; i <= 9; i++) {
    if (len[i] == 2) {
      cout << "Elephant";
      return 0;
    }
  }
  cout << "Bear";
  return 0;
}
