#include <bits/stdc++.h>
#define ll long long

using namespace std;

int main() {
   ll n;cin>>n;
   ll sum=0;
   for(ll i=0;i<n;i++){
       ll x;cin>>x;
       sum^=x;
   }
   if(sum==0)cout<<"Yes";
   else cout<<"No";
}