s = input().split(',') lis = list(set(s)) if len(lis) == 1 and lis[0] == "AC": print("Done!") else: print("Failed...")