from sys import stdin def main(): #入力 readline=stdin.readline S=readline().strip() S=S.split(",") for i in range(len(S)): if S[i]!="AC": print("Failed...") break else: print("Done!") if __name__=="__main__": main()