#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
typedef long long LL;
const int N=100005;

int n,ans;
int a;

int main() {
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
		scanf("%d",&a),ans^=a;
	if(ans==0)
		printf("Yes\n");
	else printf("No\n");
	return 0;
}
