#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;

const int MAX = 1e5+5;
int n, d;

int main(int argc, char const **argv) {
	cin >> n;
	int x = 0;

	for (int i = 0 ; i < n ; i++) {
		cin >> d;
		x = x ^ d;
	}

	if (x == 0)
      cout << "Yes";
  	else
      cout << "No";

	return 0;
}
