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

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int n;
	cin>>n;
	vector<int>a(n);
	for(auto&i:a)cin>>i;
	vector<int>cnt1(place,0),cnt0(place,0);
	for(auto&i:a){
		int j=0,p=1;
		while(j<place){
			if(p&i)++cnt1.at(j);
			else ++cnt0.at(j);
			++j;
			p=p<<1;
		}
	}
	bool yes=true;
	for(int i=0;i<place;++i){
		if(cnt1.at(i)%2!=0||(cnt1.at(i)!=0&&cnt1.at(i)%2==0&&cnt0.at(i)%2==0)){
			yes=false;
		}
	}
	cout<<(yes?"Yes"s:"No"s)<<"\n"s;
}