#include <bits/stdc++.h>
#define l_ength size
const int inf = (1<<30);
const int mod = 1000000007;
using ll = long long;
using namespace std;

int main(){
	int n; cin >> n;
	vector<int> a(n);
	for( auto &k : a ) cin >> k;
	int x = a[0]
	for( int i = 1; i < n; ++i ){
		x ^= a[i];
	}
	if( x == 0 ) cout << "Yes";
	else cout << "No";
	cout << endl;
}