#include<bits/stdc++.h>
using namespace std;
const int N = 1e5+100;
int n,m,ans;

int main(){
    scanf("%d",&n);
    for (int i = 0; i < n; ++i)
        scanf("%d",&m),ans^=m;
    if (ans) puts("No"); else puts("Yes");

    return 0;
}