#include <bits/stdc++.h>
using namespace std;
using ll = long signed long;
using ull = long unsigned long;
using ld = long double;
using P = pair<int, int>;
using llP = pair<ll, ll>;
using DoP = pair<double, double>;
template <class T>
inline bool chmin(T &a, const T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T &a, const T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline void line_out(const vector<T> vec) {
  int n = ((int)(vec).size());
  for (int i = 0; i < n; ++i) {
    cout << vec[i];
    if (i < n - 1) cout << " ";
  }
  cout << endl;
}
const int di[] = {0, 1, 0, -1, 1, 1, -1, -1};
const int dj[] = {1, 0, -1, 0, 1, -1, 1, -1};
const int di2[] = {1, 1, -1, -1, 0,  1,  2,  2,  2,  2,
                   2, 1, 0,  -1, -2, -2, -2, -2, -2, -1};
const int dj2[] = {1,  -1, 1,  -1, 2,  2,  2, 1, 0, -1,
                   -2, -2, -2, -2, -2, -1, 0, 1, 2, 2};
const int INF = 1 << 28;
const ll INF64 = 1ll << 55;
const int mod = 1000000007;
int main() {
  int n;
  cin >> n;
  vector<ll> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int sum = 0;
  for (int i = 0; i < n; ++i) sum ^= a[i];
  if (sum == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
