#include<bits/stdc++.h> using namespace std; int main(){ char s[6]; cin>>s; if(strstr(s,"AC"))cout<<"YES\n"; else cout<<"NO\n"; return 0; }