#include <bits/stdc++.h>
using namespace std;
long long int dx[] = {-1, +1, 0, 0, +1, -1, +1, -1};
long long int dy[] = {0, 0, -1, +1, +1, +1, -1, -1};
const long long int mx = 1e5 + 123;
const long long int MOD = 1e9 + 7;
const long long int INF = LLONG_MAX;
template <class T>
T power(T a, T b) {
  a %= MOD;
  if (!a) return 0;
  T p = 1;
  while (b > 0) {
    if (b & 1) {
      p *= a;
      p %= MOD;
    }
    a *= a;
    a %= MOD;
    b = b >> 1;
  }
  return p;
}
template <class T>
void print(vector<T> &v) {
  for (T u : v) {
    cout << u << " ";
  }
  cout << endl;
}
template <class T>
T gcd(T a, T b) {
  return (b != 0 ? gcd<T>(b, a % b) : a);
}
template <class T>
T lcm(T a, T b) {
  return (a / gcd<T>(a, b) * b);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ;
  long long int a = 6, i, elephant = 0, ans = 0;
  long long int b[a];
  map<long long int, long long int> m;
  for (long long int i = 0; i < a; i++) {
    cin >> b[i];
    m[b[i]]++;
  }
  for (auto x : m) {
    if (x.second >= 4) ans = 1;
    if (x.second == 2 || (x.second - 4 == 2)) elephant = 1;
  }
  if (ans == 1) {
    if (elephant == 1)
      cout << "Elephant" << endl;
    else
      cout << "Bear" << endl;
  } else
    cout << "Alien" << endl;
  return 0;
}
