using System;
using System.Linq;
class Test {
public static void Main(string[] args)
{
string s1 = "dusty";
string s1_sorted = String.Concat(s1.OrderBy(ch => ch));
string s2 = "study";
string s2_sorted = String.Concat(s2.OrderBy(ch => ch));
if (s1_sorted == s2_sorted) {
Console.WriteLine("Anagram");
}
else {
Console.WriteLine("Not Anagram");
}
}
}
/*
run:
Anagram
*/