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

int N;
int a, ans;

int main() {
  cin >> N;

  for (int i = 0;i < N; i++) {
    cin >> a;
    ans ^= a;
  }
 
  cout << ((ans) ? "No" : "Yes") << endl;
}
