#include<iostream>
#define ll long long
using namespace std;

int main(){
  ll n;cin>>n;
  ll now=0;
  for(int i=0;i<n;i++){
    ll a;cin>>a;
    now^=a;
  }
  if(now==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
