/*Lucky_Glass*/
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
const int N=1e5;
int n,Xor;
int num[N+3];
int main(){
	scanf("%d",&n);
	for(int i=1;i<=n;i++) scanf("%d",&num[i]),Xor^=num[i];
	printf("%s\n",Xor? "No":"Yes");
	return 0;
}