import sys S = list(input().split(",")) flag = True for s in S: if s != "AC": print ("Failed...") sys.exit() print ("Done!")