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

int main() {
  int N, M, A;
  cin >> N >> M >> A;
  if(A == N && N == M){
      cout << "No" << endl;
  }
  else if(N != M && M != A){
      cout << "No" << endl;
  }
  else cout << "Yes" << endl;
}