s = input().split(',') if all(map(lambda x: x == 'AC', s)): print('Done!') else: print('Failed...')