#include <bits/stdc++.h>
using namespace std;
int main() {
  int l[6];
  for (int i = 0; i < 6; i++) cin >> l[i];
  for (int i = 0; i < 5; i++)
    for (int j = 0; j < 5 - i; j++)
      if (l[j + 1] < l[j]) {
        int t = l[j + 1];
        l[j + 1] = l[j];
        l[j] = t;
      }
  int c = 0, b[2], k = 0;
  for (int i = 0; i < 6; i++)
    if (l[3] == l[i]) c++;
  if (c < 4)
    cout << "Alien";
  else {
    switch (c) {
      case 4: {
        for (int i = 0; i < 6; i++)
          if (l[3] == l[i]) l[i] = -1;
        for (int i = 0; i < 6; i++)
          if (l[i] != -1) {
            b[k] = l[i];
            k++;
          }
        cout << (b[0] == b[1] ? "Elephant" : "Bear");
        break;
      }
      case 5: {
        k = l[3];
        for (int i = 0; i < 6; i++)
          if (l[3] != l[i]) b[0] = l[i];
        cout << (b[0] == k ? "Elephant" : "Bear");
        break;
      }
      case 6: {
        cout << "Elephant";
        break;
      }
    }
  }
  return 0;
}
