#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
int main() {
  long long N;
  cin >> N;
  vector<long long> A(N);
  map<long long, int> mp{};
  long long a = 0;
  for (int i = 0; i < (int)(N); i++) cin >> A[i], a ^= A[i];
  if (a == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
