include <iostream>
#include<vector>
#include<math.h>
#include<string>

typedef long long ll;
typedef unsigned short int unsi;
typedef unsigned int uni;
typedef unsigned long int unli;

using namespace std;

int main() {
	int N;
	ll InputA;
	ll XOR_A = 0;
	ll C;
	bool Can = true;

	cin >> N;

	for (int i = 0; i < N; i++) {
		cin >> InputA;
		XOR_A ^= InputA;
		//cout << XOR_A << endl;
	}

	C = (XOR_A ^ XOR_A);

	if (XOR_A ==C) {
		cout << "Yes" << endl;
	}else {
		cout << "No" << endl;
	}
}
