#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100010;
const int inf = 1e9 + 1e8;
const long long INF = 1e18 + 1e17;
const int MOD1 = 1e9 + 7;
const int MOD2 = 998244353;
int N;
int cnt[10];
bool alien = true;
int main() {
  for (int i = 0; i < 6; i++) {
    int a;
    cin >> a;
    cnt[a]++;
  }
  for (int i = 1; i <= 9; i++) {
    if (cnt[i] >= 4) {
      alien = false;
      cnt[i] -= 4;
    }
  }
  if (alien) {
    cout << "Alien" << endl;
    return 0;
  }
  for (int i = 1; i <= 9; i++) {
    if (cnt[i] >= 2) {
      cout << "Elephant" << endl;
      return 0;
    }
  }
  cout << "Bear" << endl;
  return 0;
}
