#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
template <typename T>
istream &operator>>(istream &is, vector<T> &vec) {
  for (auto &v : vec) is >> v;
  return is;
}
template <typename A, typename B>
inline bool chmin(A &a, const B &b) {
  if (a > b) {
    a = b;
    return true;
  } else {
    return false;
  }
}
template <typename A, typename B>
inline bool chmax(A &a, const B &b) {
  if (a < b) {
    a = b;
    return true;
  } else {
    return false;
  }
}
int main() {
  int N;
  cin >> N;
  vector<ll> circ(N);
  cin >> circ;
  ll ans = 0;
  for (auto c : circ) {
    ans = ans ^ c;
  }
  if (ans) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}
