#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt;
  for (int i = (0); i < (int)(n); ++i) {
    int temp;
    cin >> temp;
    if (i == 0) {
      cnt == temp;
    } else {
      cnt ^= temp;
    }
  }
  if (cnt == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
