#include <bits/stdc++.h>
using namespace std;
static const int maxn = 3e5 + 5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n;
  cin >> n;
  int zero = 0;
  int xorSum = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    xorSum ^= x;
    zero += x == 0;
  }
  if (zero == n) {
    cout << "Yes" << endl;
    return 0;
  }
  if (xorSum == 0 && n % 2 == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
