#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main() {
  int N, a[3];
  cin >> N;
  if (N != 3)
    cout << "No";
  else {
    for (int i = 0; i < 3; i++) {
      cin >> a[i];
    }
    if (a[0] ^ a[1] == a[2] || a[0] ^ a[2] == a[0]) {
      cout << "Yes";
    } else {
      cout << "No";
    }
  }
}
