#include <bits/stdc++.h>
using namespace std;
int a[100], i, j, x;
int main() {
  for (i = 0; i <= 100; i++) {
    a[i] = 0;
  }
  for (i = 1; i <= 6; i++) {
    cin >> x;
    a[x]++;
  }
  for (i = 1; i <= 9; i++) {
    if (a[i] >= 4) {
      break;
    }
  }
  if (i == 10) {
    cout << "Alien" << endl;
  } else {
    if (a[i] == 6) {
      cout << "Elephant" << endl;
    } else if (a[i] == 5) {
      for (int j = 1; j <= 9; j++) {
        if (j != i && a[j] != 0) {
          cout << "Bear" << endl;
          break;
        }
      }
    } else {
      if (a[i] == 4) {
        for (j = 1; j <= 9; j++) {
          if (a[j] == 2) {
            cout << "Elephant" << endl;
            break;
          }
          if (a[j] == 1) {
            cout << "Bear" << endl;
            break;
          }
        }
      }
    }
  }
}
