a = input().strip().split(",") for w in a: if w != "AC": print("Failed...") exit(0) print("Done!")