# coding: utf-8

# 自分の得意な言語で

# Let's チャレンジ！！

if __name__ == '__main__':

    S = input()

    flg = True

    for index in range(len(S) - 1):

        if S[index]+S[index+1] == 'AC':

            print('Yes')

            flg = False

            break

    if flg:

        print('No')

# coding: utf-8

if __name__ == '__main__':

    S = input()

    if 'AC' in S:

        print('Yes')

    else:

        print('No')

# coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ！！
if __name__ == "__main__":
    S = input()
    flg = True
    for index in range(len(S) - 1):
        if S[index] + S[index + 1] == "AC":
            print("Yes")
            flg = False
            break
    if flg:
        print("No")

# coding: utf-8
if __name__ == "__main__":
    S = input()
    if "AC" in S:
        print("Yes")
    else:
        print("No")

-# 自分の得意な言語で -# Let's チャレンジ！！ -    flg = True -    for index in range(len(S) - 1): -        if S[index] + S[index + 1] == "AC": -            print("Yes") -            flg = False -            break -    if flg: +    if "AC" in S: +        print("Yes") +    else: