S = input().split(',') if list(set(S)) == ["AC"]: print("Done!") else: print("Failed...")