#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>

using namespace std;

int main()
{
	int n;
	vector<int> a;

	cin >> n;

	int b = 0;
	a.resize(n);
	for(int i = 0; i < n; ++i)
	{
		cin >> a[i];
		b = b ^ a[i];
	}

	cout << (b == 0 ? "Yes" : "No") << endl;
	
	return 0;
}