#include <iostream>
using namespace std;
int main(void){
  int one;
  int two;
  int three;
  cin>>one>>two>>three;
  if(one==two){
     if(one!=three||two!=three){
     cout<<"Yes";
     }
    else{
    cout<<"No";
    }
  }
  else if(one ==three){
       if(one!=two||three!=two){
    cout<<"Yes";
    }
    else{
    cout<<"No";
    }
  }
  else if(two==three){
    if(two!=one||three!=one){
    cout<<"Yes";
    }
    else{
    cout<<"No";
    }
  }
  else{
  cout<<"No";
  }
return 0;
}
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")

#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()

using ll = long long;
using ull = unsigned long long;
using namespace std;

int main() {
    string S;
    cin >> S;
    REP(i, S.size()-1) {
        if (S[i] == 'A' && S[i+1] == 'C') {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}
