#include<cstdio>
#include<algorithm>
using namespace std;
const int MAXN=100005;
int n,a[MAXN],Ans;
int main(){
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
		scanf("%d",&a[i]),Ans=Ans^a[i];
	if(Ans)printf("No\n");
	else printf("Yes\n");
}