#include <bits/stdc++.h>

using namespace std;

int main() {

	ios_base::sync_with_stdio(0);
	cin.tie(NULL);

	int n;
	cin >> n;
	int xr = 0;
	int a;
	for(int i = 0; i < n; i++) {
		cin >> a;
		xr = xr ^ a;
	}
	if(xr == 0) cout << "Yes";
	else cout << "No";

	return 0;
}