#include<cstdio>
#include<algorithm>
using namespace std;
int main()
{
	int n;
	scanf("%d", &n);
	int sum = 0;
	for (int i = 0; i < n; i++) {
		int q;
		scanf("%d", &q);
		sum ^= q;
	}
	if (sum == 0)
		puts("Yes");
	else
		puts("No");
}