#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define MAX 100010

int main()
{
	int n, c, sum = 0;
	cin >> n;
	for (int i = 1;i <= n;++i)
	{
		cin >> c;
		sum ^= c;
	}
	if (sum)
		cout << "No" << endl;
	else
		cout << "Yes" << endl;
	return 0;
}