print('Done!' if all([s == 'AC' for s in input().split(',')]) else 'Failed...')