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