#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	ll a;
	ll b;
	ll c;
	cin>>a;
	cin>>b;
	cin>>c;
	if((a==b)&&(b==c))
	{
		cout<<"No"<<"\n";
	}
	else if((a!=b)&&(b!=c)&&(c!=a))
	{
		cout<<"No"<<"\n";
	}
	else
	{
		cout<<"Yes"<<"\n";
	}
	return 0;
}

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <ctype.h>
#include <math.h>
#include <stack>
#include <string>
#include <string.h>
using namespace std;
double PI = 3.1415926535897932;
long mod = 1000000007;

const long INF = 1e9 + 1;

int main() {
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  sort(a,a+3);
  if(a[0] == a[1] & a[1] == a[2]) cout << "No" << endl;
  else if(a[0] != a[1] & a[1] != a[2]) cout << "No" << endl;
  else if(a[0] == a[1] & a[1] != a[2]) cout << "Yes" << endl;
  else if(a[0] != a[1] & a[1] == a[2]) cout << "Yes" << endl;
}
