*S, = set(input().split(',')) if len(S) == 1 and S[0] == 'AC': print('Done!') else: print('Failed...')