#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[6], f[10] = {0};
  for (int i = 0; i < 6; ++i) {
    cin >> a[i];
    f[a[i]]++;
  }
  int flag4 = 0, flage = 0;
  for (int i = 1; i <= 9; ++i) {
    if (f[i] >= 4) {
      flag4 = 1;
      f[i] -= 4;
    }
    if (f[i] == 2) {
      flage = 1;
    }
  }
  if (flag4 == 0) {
    cout << "Alien" << endl;
    return 0;
  }
  if (flage == 1) {
    cout << "Elephant" << endl;
    return 0;
  } else {
    cout << "Bear" << endl;
    return 0;
  }
  return 0;
}
