using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var S = Console.ReadLine(); if (S.IndexOf("WA") >= 0 || S.IndexOf("TLE") >= 0 || S.IndexOf("MLE") >= 0) Console.WriteLine("Failed..."); else Console.WriteLine("Done!"); } } }