#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < (N); i++) cin >> a[i];
  bool ck = true;
  for (int i = 0; i < N; i++) {
    int x = a[i];
    int sum = 0;
    for (int j = 0; j < N; j++) {
      if (i == j) continue;
      sum = sum xor a[j];
    }
    if (x != sum) {
      ck = false;
    }
  }
  if (ck) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
