#import <Foundation/Foundation.h>
int main(){
    @autoreleasepool {
        char s[7] = {'\0'};
        scanf("%s",s);
        NSString *S = [NSString stringWithFormat:@"%s", s];
        puts([S rangeOfString:@"AC"].location == NSNotFound ? "No":"Yes");
    }
}
