#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[6], b[10] = {0}, flag = 0;
  b[0] = -1;
  for (int i = 0; i < 6; i++) cin >> a[i];
  for (int i = 0; i < 6; i++) {
    b[a[i]]++;
  }
  int x;
  for (int i = 1; i < 10; i++) {
    if (b[i] >= 4) {
      flag = 1;
      x = i;
    }
  }
  if (!flag) {
    cout << "Alien";
    return 0;
  }
  for (int i = 0; i < 10; i++) {
    if (b[i] == 2 && i != x || b[i] == 6) {
      cout << "Elephant";
      return 0;
    }
  }
  cout << "Bear";
  return 0;
  return 0;
}
