#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, i, j, ans;
  cin >> n;
  long a[n + 1], h[50] = {};
  for (i = 0; i < n; i++) {
    cin >> a[i];
    j = 0;
    while (a[i] != 0) {
      if (a[i] % 2 == 1) {
        h[j]++;
      }
      a[i] /= 2;
      j++;
    }
  }
  for (i = 0; i < n; i++) {
    if (h[i] % 2 != 0) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
