S = set(list(map(str,input().split(",")))) if S == {"AC"}: print("Done!") else: print("Failed...")