#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using P = pair<ll, ll>;
template <class T>
using V = vector<T>;
int main() {
  int n;
  cin >> n;
  V<ll> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  ll num = 0;
  for (int i = 0; i < (n); ++i) num ^= a[i];
  if (num == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
