#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
template <typename T1, typename T2>
inline void chmin(T1 &a, T2 b) {
  if (a > b) a = b;
}
template <typename T1, typename T2>
inline void chmax(T1 &a, T2 b) {
  if (a < b) a = b;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int sum = 0, Xor = 0;
  for (int i = 0; i < n; ++i) {
    sum += a[i];
    Xor ^= a[i];
  }
  bool ans = (sum == Xor);
  cout << (ans ? "Yes" : "No") << endl;
  return 0;
}
