public static void Main(String[] args)
{
Console.OutputEncoding = Encoding.GetEncoding("iso-8859-1");
SCG.IEnumerable<String> ss;
if (args.Length == 2)
ss = ReadFileWords(args[0], int.Parse(args[1]));
else
ss = args;
// foreach (String s in FirstAnagramOnly(ss))
// Console.WriteLine(s);
// Console.WriteLine("===");
var sw = Stopwatch.StartNew();
SCG.IEnumerable<SCG.IEnumerable<String>> classes = AnagramClasses(ss);
int count = 0;
foreach (SCG.IEnumerable<String> anagramClass in classes)
{
count++;
// foreach (String s in anagramClass)
// Console.Write(s + " ");
// Console.WriteLine();
}
Console.WriteLine("{0} non-trivial anagram classes", count);
sw.Stop();
Console.WriteLine(sw.Elapsed);
}