func_code_string: #include <bits/stdc++.h>   using namespace std;   template <typename T>   void sc(T &x) {     char r;     bool start = false, neg = false;     T ret = 0;     while (true) {       r = getchar();       if ((r -  0  < 0 || r -  0  > 9) && r !=  -  && !start) continue;       if ((r -  0  < 0 || r -  0  > 9) && r !=  -  && start) break;       if (start) ret *= 10;       start = true;       ret += r -  0 ;     }     if (!neg)       x = ret;     else       x = -ret;   }   template <typename T>   T gcd(T a, T b) {     if (b == 0) return a;     return gcd(b, a % b);   }   int main() {     map<int, int> m;     int i, j = 0, k = 0;     i = 6;     while (i--) {       cin >> j;       if (m.find(j) != m.end())         m[j]++;       else         m[j] = 1;     }     i = j = k = 0;     if (m.size() == 1) {       cout <<  Elephant n ;     } else if (m.size() > 3) {       cout <<  Alien n ;     } else if (m.size() == 2) {       for (map<int, int>::iterator it = m.begin(); it != m.end(); it++) {         if ((*it).second >= 4) k++;         if ((*it).second == 2) j++;       }       if (k & j) {         cout <<  Elephant n ;       } else if (k) {         cout <<  Bear n ;       } else {         cout <<  Alien n ;       }     } else if (m.size() == 3) {       for (map<int, int>::iterator it = m.begin(); it != m.end(); it++) {         if ((*it).second == 4) k++;       }       if (k) {         cout <<  Bear n ;       } else {         cout <<  Alien n ;       }     }   }   