#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) cin >> a[i];
  int i, j, b, c;
  for (i = 0; i < N; i++) {
    b ^= a[i] & 1;
  }
  for (i = 0; (N >> i) > 0; i++) {
    for (j = 0; j < N; j++) {
      c ^= (a[j] >> i) & 1;
    }
    if (b != c) {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}
