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