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