a = gets.chomp.split(',') puts a.all?('AC') ? "Done!" : "Failed..."