s = input().split(',') if all([item == 'AC' for item in s]): print("Done!") else: print("Failed...")