#import pysnooper #import numpy #import os,re,sys,operator #from collections import Counter,deque #from operator import itemgetter #from itertools import accumulate,combinations,groupby,combinations_with_replacement,permutations from sys import stdin,setrecursionlimit #from bisect import bisect_left,bisect_right #from copy import deepcopy #import heapq #import math #import string #from time import time #from functools import lru_cache setrecursionlimit(10**6) input=stdin.readline s=input().rstrip() print("Failed..." if "TLE" in s or "WA" in s or "MLE" in s else "Done!")