#include <bits/stdc++.h>   using namespace std;   int main() {     int arr[6];     for (int i = 0; i < 6; i++) {       cin >> arr[i];     }     sort(arr, arr + 6);     int tracker[10];     for (int i = 0; i < 10; i++) {       tracker[i] = 0;     }     for (int i = 0; i < 6; i++) {       tracker[arr[i]]++;     }     int legs = -1;     for (int i = 0; i < 10; i++) {       if (tracker[i] >= 4) {         legs = i;         break;       }     }     if (legs != -1) {       int head1 = -1, head2;       int taken[6];       int takenCounter = 0;       for (int i = 0; i < 6; i++) {         taken[i] = 0;       }       for (int i = 0; i < 6; i++) {         if (arr[i] == legs) {           taken[i] = 1;           takenCounter++;         }         if (takenCounter == 4) {           break;         }       }       for (int i = 0; i < 6; i++) {         if (taken[i] == 0) {           if (head1 == -1) {             head1 = arr[i];           } else {             head2 = arr[i];           }         }       }       if (head1 != head2) {         cout <<  Bear ;       } else {         cout <<  Elephant ;       }     } else {       cout <<  Alien ;     }   }   