#include <bits/stdc++.h>
using namespace std;

int main (int argc, char const* argv[])
{
	string s;
	cin >> s;
	if(s.find("AC") == string::npos) {
		cout << "No" << endl;
	} else {
		cout << "Yes" << endl;
	}
	return 0;
}