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