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

int main(){
  int n, i, count;
  cin >> n;
  vector<int> a(n);
  for(i=0; i<n; i++){
    cin >> a[i];
  }

  count = a[0];

  for(i=1; i<n; i++){
    count ^= a[i];
  }

  cout << ((count==0) ? "Yes" : "No") << endl;

  return 0;
}
