output_description: If the judge can return the string `AC` as a verdict to a program, print
  `Yes`; if it cannot, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools
  
  sys.setrecursionlimit(10**7)
  inf = 10**20
  eps = 1.0 / 10**15
  mod = 10**9 + 7
  
  
  def LI():
      return [int(x) for x in sys.stdin.readline().split()]
  
  
  def LI_():
      return [int(x) - 1 for x in sys.stdin.readline().split()]
  
  
  def LF():
      return [float(x) for x in sys.stdin.readline().split()]
  
  
  def LS():
      return sys.stdin.readline().split()
  
  
  def I():
      return int(sys.stdin.readline())
  
  
  def F():
      return float(sys.stdin.readline())
  
  
  def S():
      return input()
  
  
  def pf(s):
      return print(s, flush=True)
  
  
  def main():
      s = S()
      l = len(s)
      for i in range(l - 1):
          if s[i : i + 2] == "AC":
              return "Yes"
  
      return "No"
  
  
  print(main())
  
problem_description: Statement
  
  Snuke built an online judge to hold a programming contest.
  
  When a program is submitted to the judge, the judge returns a verdict, which
  is a two-character string that appears in the string S as a contiguous
  substring. (The judge can return any two-character substring of S.)
  
  Determine whether the judge can return the string `AC` as the verdict to a
  program.
samples: [{"input": "BACD", "output": "Yes\n    \n\nThe string `AC` appears in `BACD` as a contiguous substring (the second and\nthird characters).\n\n* * *"}, {"input": "ABCD", "output": "No\n    \n\nAlthough the string `ABCD` contains both `A` and `C` (the first and third\ncharacters), the string `AC` does not appear in `ABCD` as a contiguous\nsubstring.\n\n* * *"}, {"input": "CABD", "output": "No\n    \n\n* * *"}, {"input": "ACACA", "output": "Yes\n    \n\n* * *"}, {"input": "XX", "output": "No"}]