#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v, v1, v2, v3;
  map<int, int> mp;
  int mx = -1, arr[100], i = 0;
  for (int i = 0; i < 6; i++) {
    int x;
    cin >> x;
    v.push_back(x);
    mp[x]++;
  }
  sort(v.begin(), v.end());
  v2 = v;
  v.erase(unique(v.begin(), v.end()), v.end());
  int sz = v.size(), x = 0, y = 0;
  for (int i = 0; i < sz; i++) {
    if (mp[v[i]] >= 4) {
      x = mp[v[i]];
      y = v[i];
    }
  }
  if (x >= 4) {
    for (int i = 0; i < 6; i++) {
      if (y != v2[i]) v3.push_back(v2[i]);
    }
  }
  int szz = v3.size();
  if (x == 6)
    cout << "Elephant" << endl;
  else if (szz == 1) {
    cout << "Bear" << endl;
  } else if (szz == 2) {
    if (v3[0] == v3[1])
      cout << "Elephant" << endl;
    else
      cout << "Bear" << endl;
  } else
    cout << "Alien" << endl;
  return 0;
}
