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