#include <bits/stdc++.h>
using namespace std;
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;
  long long a, s = 0;
  for (long long i = 0; i < (long long)(N); ++i) {
    cin >> a;
    s = s ^ a;
  }
  if (s == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
