#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;

int n, s,t, w, a[100005];
vector<int> b, c;
int main()
{
	int i;
	cin >> n;
	for (i = 0; i < n; i++) {
		scanf ("%d", &a[i]);
		w = (w ^ a[i]);
	}
	if (w == 0) cout << "Yes";
	else cout << "No";
    return 0;
}
