#include <bits/stdc++.h>
using namespace std;
bool Pairsecond(const pair<int, int>& pf, pair<int, int>& ps) {
  return pf.second < ps.second;
}
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "No" << endl;
    return 0;
  }
  int a = 0;
  for (int i = 0; n > i; i++) {
    int tmp;
    cin >> tmp;
    a = a ^ tmp;
  }
  if (a != 0) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}
