#include<bits/stdc++.h>
using namespace std;
int main() {
	long long n,a[100005];
	cin>>n;
	for (int i=1;i<=n;i++) 
		cin>>a[i];
	for (int i=2;i<=n;i++)
		a[1]=a[1]^a[i];
	if (a[1]==0) {
		cout<<"Yes";
	}
	else cout<<"No";
	return 0;
}