A = list(map(str, input().split(","))) ans = "Done!" print(A) for i in range(len(A)) : if A[i] == 'AC': pass else: ans = 'Failed...' print(ans) exit() print(ans)