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