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