S = input().split(",") if S.count("AC") == len(S): print("Done!") if "WA" in S or "TLE" in S or "MLE" in S: print("Failed...")