s = input().split(",") for i in range(len(s)): if s[i] != "AC": print("Failed...") exit() print("Done!")