#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
	int n,i,ans,x;
	scanf("%d",&n);
	ans=0;
	for(i=1;i<=n;i++)
	{
		scanf("%d",&x);
		ans=ans^x;	
	}
	if(ans)
		printf("No");
	else
		printf("Yes");
	return 0;
 } 