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