#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
    
    ll n,p=0;
    cin>>n;
    ll a[n];
    for(int i=0;i<n;i++)
     {cin>>a[i];p^=a[i];}
     if(p)
      cout<<"No";
      else cout<<"Yes";
    return 0;
}
