#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> l, c, m;
  set<int> s;
  int i, j, k, coun;
  for (i = 0; i < 6; i++) {
    cin >> k;
    l.push_back(k);
    s.insert(k);
  }
  for (i = 0; i < 6; i++) {
    if (l[i] > 9) {
      cout << "Alien\n";
      return 0;
    } else
      continue;
  }
  set<int>::iterator it;
  for (it = s.begin(); it != s.end(); it++) {
    c.push_back(*it);
  }
  for (i = 0; i < c.size(); i++) {
    coun = 0;
    for (j = 0; j < 6; j++) {
      if (l[j] == c[i]) {
        coun++;
      }
    }
    m.push_back(coun);
  }
  sort(m.begin(), m.end());
  int sum = 0;
  for (i = 0; i < m.size(); i++) {
    sum += m[i];
  }
  int len = m.size() - 1;
  if ((m[len] == 6 && len == 0) || (m[len] == 4 && len == 1)) {
    cout << "Elephant\n";
    return 0;
  }
  if ((m[len] == 4 && len == 2) || (m[len] == 5 && len == 1)) {
    cout << "Bear\n";
    return 0;
  }
  cout << "Alien\n";
  return 0;
}
