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

const int MAX_N = 1e5+10;
int N;
int a[MAX_N];

void solve()
{
	int ans = 0;
	for(int i=0;i<N;++i)ans^=a[i];
	if(!ans) cout << "Yes\n";
	else cout << "No\n";
}

int main()
{
	cin >> N;
	for(int i=0;i<N;++i)cin >> a[i];
	solve();
	return 0;
}