void main(){
  import std.stdio, std.string, std.conv, std.algorithm;
  
  auto s=readln.chomp.to!(char[]);
  if(s.count("AC")) writeln("Yes");
  else writeln("No");
}

void rd(T...)(ref T x){
  import std.stdio, std.string, std.conv;
  auto l=readln.split;
  foreach(i, ref e; x){
    e=l[i].to!(typeof(e));
  }
}