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