#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n;
    cin>>n;
    int i,j,k=0,a[n+5];
    for(i=0;i<n;i++){
        cin>>a[i];
        k=k^a[i];
    }
    if(k==0){
        cout<<"Yes";
        
    }
    else{
        cout<<"No";
    }
    
    
    
}
