#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[6];
  map<int, int> m;
  for (int i = 0; i < 6; i++) {
    scanf("%d", &a[i]);
    m[a[i]] = (m[a[i]] == 0 ? 1 : m[a[i]] + 1);
  }
  map<int, int>::iterator it;
  int i = 0, freq[6];
  for (it = m.begin(); it != m.end(); it++) freq[i++] = it->second;
  int j = 0;
  while (freq[j] < 4 && j != i) j++;
  if (j == i)
    cout << "Alien\n";
  else if (freq[j] > 4) {
    freq[j] = freq[j] - 4;
    int k = 0;
    if (freq[k] == 2)
      cout << "Elephant\n";
    else
      cout << "Bear\n";
  } else {
    int k;
    if (j == 0)
      k = 1;
    else
      k = 0;
    if (freq[k] == 2)
      cout << "Elephant\n";
    else
      cout << "Bear\n";
  }
  return 0;
}
