#include<bits/stdc++.h>
#define ll long long
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
using namespace std;

int main()
{
	ll n;
	cin>>n;
	ll i,a[n+5];
	ll sum=0;
	for(i=1;i<=n;i++)
	{
		cin>>a[i];
		sum=sum^a[i];
	}
	if(sum)
		cout<<"No\n";
	else
		cout<<"Yes\n";
	return 0;
}