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