#include <bits/stdc++.h>
using namespace std;
int a[100010];
int main() {
  int i, n;
  cin >> n;
  int x = 0;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    x ^= a[i];
  }
  if (x != 0) {
    cout << "No" << endl;
  }
  cout << "Yes" << endl;
}
