S = set(input()) print('Failed...' if 'L' in S or 'W' in S else 'Done!')