#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  cin>>n;
  int a[n];
  for (int i=0; i<n; i++) cin>>a[i];
  long long tmp = 0;
  for (auto ai: a) {
    tmp ^= ai;
  }
  if (tmp == 0) {
    cout<<"Yes"<<endl;
  } else {
    cout<<"No"<<endl;
  }
}