#include <bits/stdc++.h>
using namespace std;
long long n, m, o, x, y, z, l, lna, lnb, pa, pb, sum;
int a[10], b[10], c[3];
int main() {
  for (int i = 0; i < 6; i++) {
    cin >> a[i];
    b[a[i]]++;
  }
  for (int i = 0; i < 6; i++) {
    if (b[a[i]] >= 4) {
      n = a[i];
      break;
    }
  }
  if (n == 0) {
    cout << "Alien";
    return 0;
  } else if (b[n] == 6) {
    cout << "Elephant";
    return 0;
  } else if (b[n] == 5) {
    cout << "Bear";
    return 0;
  }
  for (int j = 0, k = 0; j < 6; j++) {
    if (a[j] != n) {
      c[k] = a[j];
      k++;
      if (k > 1) break;
    }
  }
  if (c[0] == c[1]) {
    cout << "Elephant";
    return 0;
  } else {
    cout << "Bear";
    return 0;
  }
  cout << "Alien";
}
