#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n;
	ignore = scanf("%d", &n);
	int s = 0;
	for (int i = 0; i < n; i++) {
		int x;
		ignore = scanf("%d", &x);
		s ^= x;
	}
	
	if (s == 0) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}
}
