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

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    string S; cin >> S;
    int ok=0;
    for (int i=0;i+1<S.size();++i)
        if (S[i]=='A'&&S[i+1]=='C') ok=1;
    cout << (ok?"Yes":"No") << '\n';
}
#include<iostream>
using namespace std;
int main(){
    int x;
    cin>>x;
    int temp=x;
    int sum=0;
    while(temp!=0)
    {
        sum+=temp%10;
        temp/=10;
    }
    if(x%sum==0)
    {
        cout<<"Yes";
    }
    else
    cout<<"No";
}