L=list(input().split(",")) if all(l=="AC" for l in L): print("Done!") else: print("Failed...")