using System; using System.Linq; using System.Collections.Generic; static class NagataKanaIsAGenius { public static void Main() { foreach(String s in Console.ReadLine().Split(',')){ if(s!="AC"){ Console.WriteLine("Failed..."); Environment.Exit(0); } } Console.WriteLine("Done!"); } }