#include <iostream>
#include <iterator>
#include<algorithm>
#include <vector>
int main() {
std::vector<std::string> words;
std::string word1,word2;
size_t i;
std::copy(std::istream_iterator<std::string> (std::cin),
std::istream_iterator<std::string>(),
std::back_inserter(words));
word1=words[0];
for(i=1; i<words.size();i++)
{
word2=words[i];
sort(word2.begin(), word2.end());
if(word2!=word1)
break;
}
if(i==words.size())
std::cout<<"All Anagrams !";
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aXRlcmF0b3I+CiAjaW5jbHVkZTxhbGdvcml0aG0+CiNpbmNsdWRlIDx2ZWN0b3I+CiAKCmludCBtYWluKCkgewogICAgCiAgICBzdGQ6OnZlY3RvcjxzdGQ6OnN0cmluZz4gd29yZHM7CiAgICBzdGQ6OnN0cmluZyB3b3JkMSx3b3JkMjsKICAgIHNpemVfdCBpOwogICAgc3RkOjpjb3B5KHN0ZDo6aXN0cmVhbV9pdGVyYXRvcjxzdGQ6OnN0cmluZz4gKHN0ZDo6Y2luKSwKICAgICAgICAgICAgICBzdGQ6OmlzdHJlYW1faXRlcmF0b3I8c3RkOjpzdHJpbmc+KCksCiAgICAgICAgICAgICAgc3RkOjpiYWNrX2luc2VydGVyKHdvcmRzKSk7CiAgICAKICAgIHdvcmQxPXdvcmRzWzBdOwogICAgCiAgICBmb3IoaT0xOyBpPHdvcmRzLnNpemUoKTtpKyspCiAgICB7CiAgICAgICB3b3JkMj13b3Jkc1tpXTsKICAgICAgICBzb3J0KHdvcmQyLmJlZ2luKCksIHdvcmQyLmVuZCgpKTsKICAgICAgICBpZih3b3JkMiE9d29yZDEpCiAgICAgICAgICAgYnJlYWs7CiAgICB9CiAgICAKICAgIGlmKGk9PXdvcmRzLnNpemUoKSkKICAgICAgICBzdGQ6OmNvdXQ8PCJBbGwgQW5hZ3JhbXMgISI7CiAgICAgICAgICAgICAgCgoKIAp9