#include <bits/stdc++.h>
using namespace std;
int N, M;
int c[10], A[10];
int main() {
  bool flag = 0;
  for (int i = 1; i <= 6; i++) {
    cin >> A[i];
    c[A[i]]++;
  }
  sort(A + 1, A + N + 1);
  for (int i = 1; i <= 9; i++) {
    if (c[i] >= 4) flag = 1;
  }
  if (!flag) return cout << "Alien\n", 0;
  for (int i = 1; i <= 9; i++) {
    if (c[i] == 2 or c[i] == 6) return cout << "Elephant\n", 0;
  }
  cout << "Bear\n";
  return 0;
}
