#include<cstdio>
#include<iostream>
using namespace std;
const int N=1010100;
int n,cnt;
int main()
{
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
    {
        int x;
        scanf("%d",&x);
        cnt^=x;
    }
    if(!cnt) puts("Yes");
    else puts("No");
    return 0;
}