#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  int count = 0;
  for (int i = 0; i < N; i++) {
    cin >> A[i];
    count = count ^ A[i];
  }
  cout << (count == 0 ? "Yes" : "No") << endl;
}
