#include <bits/stdc++.h>
int main() {
  std::vector<int> vec;
  std::map<int, int> m;
  std::map<int, int>::iterator it;
  bool ok = false;
  int number_of_four = 0;
  for (int i = 0; i < 6; ++i) {
    int x;
    std::cin >> x;
    vec.push_back(x);
    if ((it = m.find(x)) == m.end()) {
      m.insert(std::make_pair(x, 1));
    } else {
      ++it->second;
      if (it->second >= 4) {
        ok = true;
        number_of_four = it->first;
      }
    }
  }
  if (ok) {
    int num[2];
    int pos_num = 0;
    for (size_t i = 0, pos_cnt = 0; i < 6; ++i) {
      int cur = vec[i];
      if (pos_cnt < 4) {
        if (cur == number_of_four) {
          ++pos_cnt;
        } else {
          num[pos_num] = cur;
          ++pos_num;
        }
      } else {
        num[pos_num] = cur;
        ++pos_num;
      }
    }
    assert(pos_num == 2);
    if (num[0] == num[1])
      std::cout << "Elephant" << std::endl;
    else
      std::cout << "Bear" << std::endl;
  } else {
    std::cout << "Alien" << std::endl;
  }
  return 0;
}
