#include<cstdio>
#include<cmath>
#include<iostream>
using namespace std;
const int N = 1e5+10;
int main()
{
	
	int n;
	cin>>n;
	int ans = 0;
	for(int i = 1; i <= n; i++){
		int x;
		cin>>x;
		ans^=x;
	}
	if(ans ==0)printf("Yes\n");
	else printf("No\n");
	return 0;
}
