#include <stdio.h>
int main(){
	int A;
	int B;
	int C;
	
	scanf("%d %d %d",&A,&B,&C);
	if (A==B && B!=C && C!=A) {
		printf("Yes\n");
	}
	else if (A==C && A!=B && C!= B){
		printf("Yes\n");
	}
	else if (B==C && A!=B && C!=A){
		printf ("Yes\n");
	}
	else printf ("No\n");
	return 0;
}
#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;
}