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

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