#include<bits/stdc++.h>
#define speed ios::sync_with_stdio(false), cin.tie(0);
using namespace std;

int main()
{
  speed;
  int n,i;
  cin>>n;
  long long int p,ans=0;
  for (i=0;i<n;i++)
  {
    cin>>p;
    ans^=p;
  }
  if (ans)
  	cout<<"No"<<endl;
  else
    cout<<"Yes"<<endl;
}