#include <bits/stdc++.h>
using namespace std;
int cnt[10], dif(0), x;
int main() {
  for (int i = 1; i <= 6; i++) {
    cin >> x;
    if (!cnt[x]) dif++;
    cnt[x]++;
  }
  bool ok = false;
  for (int i = 1; i < 10; i++)
    if (cnt[i] >= 4) {
      cnt[i] -= 4;
      ok = true;
    }
  if (!ok) {
    cout << "Alien";
    return 0;
  }
  dif = 0;
  for (int i = 1; i < 10; i++)
    if (cnt[i] > 0) dif++;
  if (dif == 2)
    cout << "Bear";
  else if (dif <= 1)
    cout << "Elephant";
  return 0;
}
