#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef bitset<35> sta;

int n,t;

int main(){
	cin>>n;
	for (int i=1;i<=n;++i){
		int x;
		scanf("%d",&x);
		t^=x;
	}
	if (t) cout<<"No"<<endl;
	else cout<<"Yes"<<endl;
	return 0;
}
