import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines answer = 'Done!' for x in read().rstrip().split(b','): if x != b'AC': answer = 'Failed...' print(answer)