#include<bits/stdc++.h>

using namespace std;

int a[100005];

int main(){
	int N, ans; cin >> N;
	for(int i = 0; i < N; ++i) cin >> a[i];
	ans = a[0];
	for(int i = 1; i < N; ++i) ans ^= a[i];
	cout << (ans ? "No" : "Yes") << endl;
}