#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,b) for(ll i=0;i<b;i++)

ll n,m,a=0;

int main() {
    cin>>n;
    rep(i,n){
        cin>>m;
        a^=m;
    }
    if(a==0)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}