#include<iostream>
using namespace std;
#define int long long
void main(){
  int n;cin>>n;
  int now=0;
  for(int i=0;i<n;i++){
    int a;cin>>a;
    now^=a;
  }
  if(now==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
