#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N;
  cin >> N;
  long long A[N + 2];
  for (int i = (1); i <= (N); ++i) cin >> A[i];
  bool CAN = false;
  long long t = A[1];
  for (int i = (2); i <= (N); ++i) {
    t ^= A[i];
  }
  if (t == 0) CAN = true;
  if (CAN)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
}
