#include <bits/stdc++.h>
using namespace std;
using lli = int_fast64_t;
using ulli = uint_fast64_t;
const lli MOD = 1000000007;
const lli LIMIT = 1000000000000000000 * 5;
const int tenfive = 100000;
int main() {
  int N;
  cin >> N;
  vector<int> v(N);
  int axo;
  for (int i = 0; i < N; i++) {
    cin >> v[i];
    if (v[i] == 0) {
      cout << "No" << endl;
      return 0;
    }
    if (i == 0) {
      axo = v[i];
    } else {
      axo = axo xor v[i];
    }
  }
  if (axo == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
