t=input().split(",") for i in t: if i!="AC": print("Failed...") break else: print("Done!")