#include <bits/stdc++.h>
using namespace std;
int a[20];
vector<int> xx;
int main() {
  int n;
  for (int i = 0; i < 6; i++) {
    scanf("%d", &n);
    a[n]++;
  }
  int pos = -1;
  for (int i = 1; i <= 9; i++)
    if (a[i] >= 4) {
      pos = i;
      break;
    }
  if (pos == -1)
    puts("Alien");
  else {
    a[pos] -= 4;
    for (int i = 1; i <= 9; i++) {
      if (a[i] == 0) continue;
      for (int j = 0; j < a[i]; j++) xx.push_back(i);
    }
    sort(xx.begin(), xx.end());
    if (xx[0] == xx[1])
      puts("Elephant");
    else
      puts("Bear");
  }
  return 0;
}
