#include"bits/stdc++.h"
using namespace std;
#define LL long long
#define PB push_back
#define MP make_pair

int main(){
	int N;
	cin >> N;
	int now = 0;
	for(int i=0; i<N; i++){
		int a;
		cin >> a;
		now ^= a;
	}
	if(now == 0) cout << "Yes" << endl;
	else cout << "No" << endl;
}