#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> A(N);
  map<int, int> ma;
  for (int i = 0; i < (int)(N); i++) {
    cin >> A[i];
    for (int j = 31; j > -1; j--) {
      if (A[i] & (1 << j)) {
        ma[j]++;
      }
    }
  }
  for (auto m : ma) {
    if (m.second % 2 == 1) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
