#include <bits/stdc++.h> 
using namespace std;
 
 
int main()
{ int n,i,sum=0; scanf("%d",&n); int A[n];
for(i=0;i<n;i++){scanf("%d",&A[i] ); sum=sum^A[i];  }
if(sum!=0){printf("No"); return 0;}
 printf("Yes");
 
 
 
return 0;
}
