s=sorted(list(set(list(input())))) if len(s)==3: if s[0]=="," and s[1]=="A" and s[2]=="C": print("Done!") else: print("Failed...") else: print("Failed...")