#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  int64_t N;
  cin >> N;
  vector<int64_t> vec(N);
  for (int64_t i = 0; i < N; i++) {
    cin >> vec.at(i);
  }
  int64_t num = vec[0];
  for (int64_t i = 1; i < N; i++) {
    num = num ^ vec[i];
  }
  if (num == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
