#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x[n], cnt = 0, ans = 0;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
    cnt ^= x[i];
  }
  cnt ^= n;
  if (cnt = 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
