import re s = input() if re.search("(TLE|MLE|WA)",s): print("Failed...") else: print("Done!")