#include<cstdio>
using namespace std;
int ans;
inline int read(){
	int ret=0;bool f=0;char ch=getchar();
	while(ch>'9'||ch<'0') f^=ch=='-',ch=getchar();
	while(ch<='9'&&ch>='0') ret=ret*10+ch-'0',ch=getchar();
	return f?-ret:ret;
}
int main(){
	for (int n=read();n--;) ans^=read();
	puts(ans?"No":"Yes");
	return 0;
}