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

vector<pair<long long,long long>> bunkai;

int main(){
  int a,b,c; cin >> a >> b >> c;
  if(a == b && b == c && c == a || a != b && b != c && c != a)
    cout << "No";
  else
    cout << "Yes";
}
  
#include <bits/stdc++.h>
using namespace std;

#define LL long long
#define DD long double

#define M 1000000007
#define INF 1e18

void setIO(string s = "") { 
  cin.sync_with_stdio(0); cin.tie(0);
  if (s.size()) s += ".in", freopen(s.c_str(), "r", stdin);
}

int tt = 1;
void solve() {
  set<int> nums;
  int a;
  while (cin >> a) nums.insert(a);
  cout << ((nums.size() == 2) ? "Yes" : "No") << endl;
}

int main() {
  setIO();
  while (tt--) {
    solve();
  }
  return 0;
}