S = input().split(',') flag = all(e == "AC" for e in S) print("Done!" if flag else "Failed...")