puts gets.chomp=~/^AC(,AC)*$/ ? 'Done!' : 'Failed...'