{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv\u003e \n \u003cdiv\u003e\n Santa Claus has many reindeers for he to deliver his presents, but this year before Christmas, he lost his reindeers accidently, in order to send all the presents to people around the world, he asked a magician to transform some sticks into an animal to pull his sled. The magician can make an animal from sticks in the following way:\n \u003c/div\u003e \n \u003cdiv\u003e\n \u0026nbsp;\n \u003c/div\u003e \n \u003cdiv\u003e\n \u0026nbsp;\u0026nbsp;\u0026nbsp; Four sticks represent the animal\u0027s legs, these sticks should have the same length.\n \u003cbr\u003e \u0026nbsp;\u0026nbsp;\u0026nbsp; Two remaining sticks represent the animal\u0027s head and body. The bear\u0027s head stick must be shorter than the body stick. The elephant, however, has a long trunk, so his head stick must be as long as the body stick. Note that there are no limits on the relations between the leg sticks and the head and body sticks.\n \u003c/div\u003e \n \u003cdiv\u003e\n \u0026nbsp;\n \u003c/div\u003e \n \u003cdiv\u003e\n Your task is to find out which animal can be made from the given stick set. Santa Claus wants his sticks back after Christmas, so they must never be broken.\n \u003c/div\u003e \n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e The single line contains six space-separated integers \u003cspan\u003e\u003cspan\u003e\u003cspan\u003e\u003ci\u003el\u003c/i\u003e\u003csub\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e (\u003cspan\u003e1 ≤ \u003cspan\u003e\u003cspan\u003e\u003ci\u003el\u003c/i\u003e\u003csub\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e\u003c/span\u003e\u003c/span\u003e ≤ 9\u003c/span\u003e) — the lengths of the six sticks. It is guaranteed that the input is such that you cannot make both animals from the sticks.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e If you can make a bear from the given set, print string \"\u003cspan\u003eBear\u003c/span\u003e\" (without the quotes). If you can make an elephant, print string \"\u003cspan\u003eElephant\u003c/span\u003e\" (\u003cspan\u003e\u003cspan\u003ewıthout\u003c/span\u003e\u003c/span\u003e the quotes). If you can make neither a bear nor an elephant, print string \"\u003cspan\u003eAlien\u003c/span\u003e\" (without the quotes).\u003c/p\u003e"}},{"title":"Example","value":{"format":"HTML","content":"\u003cdiv\u003e \n \u003cdiv\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e\r\n\t4 2 5 4 4 4\r\n\u003c/pre\u003e \n\u003c/div\u003e \n\u003cdiv\u003e \n \u003cdiv\u003e\n Output\n \u003c/div\u003e \n \u003cpre\u003e\r\n\tBear\u003c/pre\u003e \n\u003c/div\u003e \n\u003cdiv\u003e \n \u003cdiv\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e\r\n\t4 4 5 4 4 5\r\n\u003c/pre\u003e \n\u003c/div\u003e \n\u003cdiv\u003e \n \u003cdiv\u003e\n Output\n \u003c/div\u003e \n \u003cpre\u003e\r\n\tElephant\u003c/pre\u003e \n\u003c/div\u003e \n\u003cdiv\u003e \n \u003cdiv\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e\r\n\t1 2 3 4 5 6\r\n\u003c/pre\u003e \n\u003c/div\u003e \n\u003cdiv\u003e \n \u003cdiv\u003e\n Output\n \u003c/div\u003e \n \u003cpre\u003e\r\n\tAlien\u003c/pre\u003e \n\u003c/div\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003cp\u003e If you\u0027re out of creative ideas, see instructions below which show how to make a bear and an elephant in the first two samples. The stick of length 2 is in red, the sticks of length 4 are in green, the sticks of length 5 are in blue.\u003c/p\u003e \n\u003cp\u003e \u003cimg src\u003d\"http://7xjob4.com1.z0.glb.clouddn.com/93d4534f8acebc48626346a45fd93fc4\"\u003e\u003c/p\u003e"}}]}