#include<bits/stdc++.h>
using  namespace std;
#define ll long long
int main()
{
  	ll n;
  	cin>>n;
  	ll a[n];
  	ll i;
  	for(i=0;i<n;i++)
    {
      	cin>>a[i];
    }
  	ll x=a[0];
  	for(i=1;i<n;i++)
    {
      	x=x^a[i];
    }
  	if(x==0) cout<<"Yes\n";
  	else cout<<"No\n";
}