#include <iostream>
using namespace std;
const int MAXN=100005;
int n;
int a[MAXN];

int main()

{
	int ans=0;
	cin>>n;
	for (int i=1;i<=n;i++){
		cin>>a[i];
		ans^=a[i];
	}

	if (ans==0) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}