s=input() if(s.find('WA')>-1 or s.find('TLE')>-1 or s.find('MLE')>-1): print('Failed...') else: print('Done!')