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