#include <bits/stdc++.h>
using namespace std;

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