line = input().split(",") if "TLE" in line or "MLE" in line or "WA" in line: print("Failed...") else: print("Done!")