#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 6;
  int x, f[12] = {0};
  for (int i = 0; i < n; i++) {
    cin >> x;
    f[x]++;
  }
  bool res = 0;
  for (int i = 0; i < 10; i++) {
    if (f[i] >= 4) {
      res = 1;
      f[i] -= 4;
      for (int j = 0; j < 10; j++) {
        if (f[j] == 2) {
          cout << "Elephant\n";
          return 0;
        } else if (f[j]) {
          cout << "Bear\n";
          return 0;
        }
      }
    }
  }
  cout << "Alien\n";
  return 0;
}
