#include<iostream>
using namespace std;
#define ll long long
#define rep(i,l,r) for(int (i)=(l);(i)<(r);(i)++)
int main(){
    ll n;
    cin>>n;
    ll a,ans=0;
    rep(i,0,n){
        cin>>a;
        ans^=a;
    }
    if(ans)cout<<"No"<<endl;
    else cout<<"Yes"<<endl;

}