#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using v = vector<ll>;

int main(){
    ll n; cin >> n;
    auto a = v(n,0);
    for(auto &i:a) cin >> i;
  	ll c= a[0];
    for(ll i=1;i<n;i++) c^=a[i];
  	cout << (c==x[0]?"Yes":"No");
    return 0;
}