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