#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, R[N], C = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> R[i];
    C = R[i] ^ C;
  }
  if (C == 0) {
    cout << "Yes";
  } else {
    cout << "No";
  }
}
