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