#include <bits/stdc++.h>
using namespace std;
const long long INF = 100000000;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  long long n;
  cin >> n;
  vector<long long> a(n, 0);
  for (long long i = 0; i < (n); i++) cin >> a[i];
  long long ans = 0;
  for (long long i = 0; i < (n); i++) ans = ans ^ a[i];
  if (!ans)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
