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


int main() {

  int N;
  cin >> N;

  int c = 0;
  for(int i = 0;i < N;i++) {
    int a;
    cin >> a;
    c = c^a;
  }

  if(c == 0) {
    cout << "Yes" << endl;
  }else {
    cout << "No" << endl;
  }

}
