#include<stdio.h>
#include<iostream>
using namespace std;

int main(){

	int N;
  	int out=0,tmp;
	
  	cin >> N;
    for(int i=0;i<N;i++){
    	cin>>tmp;
        out = out ^ tmp;
    }

  	if(out==0){
      cout<<"Yes";
    }else{
      cout<<"No";
    }
  	
	return 0;
}
