#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18;
using pint = pair<long long, long long>;
long long dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
signed main() {
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  long long x = 0;
  for (long long i = 0; i < n; i++) {
    x ^= a[i];
  }
  if (x == 0) {
    cout << "Yes\n";
  } else {
    cout << "No\n";
  }
}
