puts gets.chomp.split(",").all?{|s| s=="AC"} ? "Done!" : "Failed..."