#include <bits/stdc++.h>
#define lowbit(a) ((a)&(-(a)))
using namespace std;



int n;
int a[100000 + 5];

int main()
{
	cin >> n;
	for (int i = 0; i < n; i++)cin >> a[i];
	int flag = 0;
	for (int i = 0; i < n; i++)
	{
		flag ^= a[i];
	}
	if (flag==0)printf("Yes\n");
	else printf("No\n");
	return 0;
}