S = input() W = ["TLE", "MLE", "WA"] for w in W: if w in S: print("Failed...") break else: print("Done!")