#include <bits/stdc++.h>
using namespace std;
inline void inp(int &n) {
  n = 0;
  int ch = getchar();
  int sign = 1;
  while (ch < '0' || ch > '9') {
    if (ch == '-') sign = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    n = (n << 3) + (n << 1) + ch - '0', ch = getchar();
  n = n * sign;
}
int main() {
  int a[10], xx, al = 1, el = 0;
  memset((a), (0), sizeof(a));
  for (int i = 0; i < 6; i++) {
    inp(xx);
    a[xx]++;
  }
  for (int i = 0; i < 10; i++) {
    if (a[i] == 6 || a[i] == 2) {
      el = 1;
    }
    if (a[i] >= 4) al = 0;
  }
  if (al == 0 && el == 1) {
    cout << "Elephant\n";
    return 0;
  }
  if (al == 1) {
    cout << "Alien\n";
    return 0;
  }
  cout << "Bear\n";
  return 0;
}
