S = input().split() if len(set(S))==1 and S[0]=="AC": print("Done!") else: print("Failed...")