#include <iostream>
using namespace std;
#define ll long long
//なんで？(半ギレ)
int main(){
    ll ans=0,n;
    cin >>n;
    for(int i=0;i<n;i++){
        ll t;
        cin>>t;
        ans^=t;
    }
    if(!ans)cout <<"Yes"<<endl;
    else cout <<"No"<<endl;
    return 0;

}