#include <cstdio>
using namespace std;

const int maxN = 3e5 + 100;

int a[maxN + 1], n, b[maxN + 1], tmp;

int main()
{
	scanf("%d", &n);
	for(int i = 1; i <= n; i++) scanf("%d", &a[i]), tmp ^= a[i];
	if(tmp == 0) puts("Yes");
	else puts("No");
	return 0;
}