#include <bits/stdc++.h>
using namespace std;
struct edge {
  int to;
  int weight;
  edge(int t, int w) : to(t), weight(w) {}
};
using Graph = vector<vector<int>>;
const int INF = 2000000000;
const long long INF64 = 9223372036854775806ll;
const int mod = 1000000007ll;
const long long MOD = 1000000007LL;
int main() {
  int n;
  std::cin >> n;
  if (n >= 4) {
    std::cout << "No" << std::endl;
  } else {
    int a, s, d;
    std::cin >> a >> s >> d;
    if (a ^ d == s && a ^ s == d && d ^ s == a)
      std::cout << "Yes" << std::endl;
    else
      std::cout << "No" << std::endl;
  }
}
