s = input().split(",") for si in s: if si!="AC": print("Failed...") exit() print("Done!")