S = input() a = S.split(',') AC = 'AC' judge = True for A in a : if A != AC : judge = False if judge : print('Done!') else : print('Failed...')