#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b[6], c, d, e[6], f, g, h;
  for (a = 0; a < 6; a++) cin >> b[a];
  for (a = 0; a < 6; a++) {
    d = 0;
    for (c = 0; c < 6; c++) {
      if (b[a] == b[c]) d = d + 1;
    }
    e[a] = d;
  }
  f = g = d = h = 0;
  for (a = 0; a < 6; a++) {
    if (e[a] == 4)
      f = 1;
    else if (e[a] == 2)
      g = 1;
    else if (e[a] == 6)
      d = 1;
    else if (e[a] == 5)
      h = 1;
  }
  if (f == 1 && g == 1 || d == 1)
    cout << "Elephant";
  else if (f == 1 || h == 1)
    cout << "Bear";
  else
    cout << "Alien";
  return 0;
}
