S = gets.chomp if S.split(',').all?('AC') puts 'Done!' else puts 'Failed...' end