#include <bits/stdc++.h>
void fastWrite(int a) {
  char snum[20];
  int i = 0;
  do {
    snum[i++] = a % 10 + 48;
    a = a / 10;
  } while (a != 0);
  i = i - 1;
  while (i >= 0) putchar(snum[i--]);
  putchar('\n');
}
int fastread() {
  int input;
  int negative = 0;
  char c = 0;
  while (c < 33) {
    c = getchar();
    if (c == '-') {
      c = getchar();
      negative = 1;
    }
  }
  input = 0;
  while (c > 33) {
    input = input * 10 + c - '0';
    c = getchar();
  }
  if (negative) input = -input;
  return input;
}
void solve() {
  int a[6];
  int map[10] = {0};
  int i;
  for (i = 0; i < 6; ++i) {
    a[i] = fastread();
    map[a[i]] += 1;
  }
  int j = 0;
  int b[10] = {0};
  int valid = 0;
  for (i = 1; i <= 9; ++i) {
    if (map[i] != 0 && map[i] < 4) {
      b[j++] = i;
    }
    if (map[i] >= 4) valid = 1;
  }
  if (valid) {
    if ((b[1] == 0 && map[b[0]] == 2) || b[0] == b[1])
      printf("Elephant\n");
    else
      printf("Bear\n");
  } else {
    printf("Alien\n");
  }
}
int main(int argc, char **argv) {
  int t, j;
  solve();
  return 0;
}
