#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
int main(void) {
  ll n;
  cin >> n;
  vector<ll> a(n);
  for (ll i = 0; i < n; i++) cin >> a[i];
  ll ans = 0;
  for (ll i = 0; i < n - 1; i++) ans ^= a[i];
  if (find((a).begin(), (a).end(), ans) == a.end())
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
