s=input() for i in range(len(s)): if s[i]!='A' or s[i]!="C" or s[i]!=",": print("Failed...") exit() print("Done!")