S = input().split(",") print("Done!" if all([a == "AC" for a in S]) else "Failed...")