def main():

    S = eval(input())

    print(("Yes" if 'AC' in S else 'No')) 



if __name__ == '__main__':

    main()
def main():

    S = eval(input())

    if S.count("AC"):

        print("Yes")

    else:

        print("No")





if __name__ == '__main__':

    main()

def main():
    S = eval(input())
    print(("Yes" if "AC" in S else "No"))


if __name__ == "__main__":
    main()

def main():
    S = eval(input())
    if S.count("AC"):
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

-    print(("Yes" if "AC" in S else "No")) +    if S.count("AC"): +        print("Yes") +    else: +        print("No")