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

int main()
{
	int N;
	cin >> N;
	vector<int> a( N );
	for( int i = 0; i < N; i++ ) {
		cin >> a[i];
	}

	int s = 0;
	for( int i = 0; i < N; i++ ) {
		s ^= a[i];
	}

	string ans = "No";
	if( s == 0 ) {
		ans = "Yes";
	}

	cout << ans << endl;
}
