#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
  ll N,a,b; cin>>N;
  for(int i=0; i<N; i++){
    cin>>a;
    b^=a;
  }
  if(b==0) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}