#include <bits/stdc++.h>
using namespace std;
namespace io {
string separator = " ";
}
template <typename T>
inline void write(T x) {
  cout << x << io::separator;
}
template <typename T, typename... Args>
inline void write(T x, Args... args) {
  write(x);
  write(args...);
}
inline void writeln() { cout << '\n'; }
template <typename... Args>
inline void writeln(Args... args) {
  write(args...);
  writeln();
}
template <typename T>
inline void read(T& x) {
  cin >> x;
}
template <typename T, typename... Args>
inline void read(T& x, Args&... args) {
  cin >> x;
  read(args...);
}
template <typename T>
inline void writec(T x) {
  for (auto i = x.begin(); i != x.end(); i++) writes(*i);
  writeln();
}
template <typename TL, typename TR>
inline TL gcd(TL a, TL b) {
  TL c;
  while (b) {
    c = b;
    b = a % b;
    a = c;
  }
  return a;
}
template <typename TL, typename TR>
inline TL lcm(TL a, TL b) {
  return a / gcd(a, b) * b;
}
template <typename TL, typename TR>
inline TL max(TL& a, TR& b) {
  return a > b ? a : b;
}
template <typename T, typename... Args>
inline T max(T& a, Args&... args) {
  return max(a, max(args...));
}
template <typename TL, typename TR>
inline TL min(TL& a, TR& b) {
  return a < b ? a : b;
}
template <typename T, typename... Args>
inline T min(T& a, Args&... args) {
  return min(a, min(args...));
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  array<int16_t, 10> a{};
  for (auto i_ = 6; i_; i_--) {
    int16_t l;
    read(l);
    a[l]++;
  };
  array<int16_t, 7> n{};
  for (auto i = 1; i != 9 + 1; i++) n[a[i]]++;
  ;
  if (n[4] && n[2] || n[6])
    writeln("Elephant");
  else if (n[4] || n[5])
    writeln("Bear");
  else
    writeln("Alien");
}
