#include <bits/stdc++.h>
using namespace std;
long long dx[4] = {1, 0, -1, 0};
long long dy[4] = {0, 1, 0, -1};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long a, b, d, m, n, maxi = 0, f = 0, mini = LLONG_MAX, sum = 0;
  string str;
  cin >> n;
  vector<long long> v(n);
  for (long long i = (long long)(0); i < (long long)(n); i++) cin >> v[i];
  for (long long i = (long long)(0); i < (long long)(n); i++) sum ^= v[i];
  if (sum)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
