import java.util.Scanner object Main extends App{ val sc = new Scanner(System.in) val n = sc.nextInt val s = sc.next val results = s.split(',') val res = if(results.forall(_ == "AC")) "Done!" else "Failed..." println(res) }