#include<iostream>

using namespace std;

int main() {
  int n;cin >> n;
  int a = 0;
  for(int i = 0; i < n ; i++) {
    int x; cin >> x;
    a ^= x;
  }
  if (a == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  
  return 0;
}