#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<queue>
#include<cmath>
#define ll long long
using namespace std;
const int INF=1e9+7;
int n,ans;
int main()
{
	scanf("%d",&n);
	for(int i=1,x,j;i<=n;i++)
		scanf("%d",&x),ans=ans^x;
	if(!ans)printf("Yes");
	else printf("No");
}